mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
16 lines
224 B
Rust
16 lines
224 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() {}
|