rust/src/test/ui/rfc-2166-underscore-imports/duplicate.rs

16 lines
226 B
Rust
Raw Normal View History

// compile-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() {}