mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
15 lines
226 B
Rust
15 lines
226 B
Rust
//@ check-pass
|
|
//@ aux-build:duplicate.rs
|
|
|
|
extern crate duplicate;
|
|
|
|
#[duplicate::duplicate]
|
|
use main as _; // OK
|
|
|
|
macro_rules! duplicate {
|
|
($item: item) => { $item $item }
|
|
}
|
|
|
|
duplicate!(use std as _;); // OK
|
|
|
|
fn main() {}
|