summaryrefslogtreecommitdiffstats
path: root/src/test/ui/underscore-imports/duplicate.rs
blob: 20bc7848acd66da25b268325ed1c2f8d143dc2e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}