rust/tests/ui/underscore-imports/duplicate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
224 B
Rust
Raw Normal View History

2022-05-28 04:57:02 -05:00
// 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() {}