about summary refs log tree commit diff
path: root/tests/ui/underscore-imports/duplicate.rs
blob: 125ccdf52b01224fe56822a332a27ff62ca01dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass
//@ proc-macro: 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() {}