summary refs log tree commit diff
path: root/tests/ui/underscore-imports/duplicate.rs
blob: 4afad77ee4f054e7d56a4c659c78fdc02ada9662 (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() {}