about summary refs log tree commit diff
path: root/tests/ui/imports/auxiliary/same-res-ambigious-extern-fail.rs
blob: 61a8d8f0054a8f66488ddb4035dd63b06300436a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ edition:2018
//@ proc-macro: same-res-ambigious-extern-macro.rs

macro_rules! globbing{
    () => {
        pub use same_res_ambigious_extern_macro::*;
    }
}

#[macro_use] // this imports the `RustEmbed` macro with `pub(crate)` visibility
extern crate same_res_ambigious_extern_macro;
globbing! {} // this imports the same `RustEmbed` macro with `pub` visibility

pub trait RustEmbed {}

pub use RustEmbed as Embed;