summaryrefslogtreecommitdiffstats
path: root/tests/ui/diagnostic_namespace/existing_proc_macros.rs
blob: d6d1fb014962d805d07153adbd5dc29c429d1cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#![feature(diagnostic_namespace)]
// check-pass
// aux-build:proc-macro-helper.rs

extern crate proc_macro_helper;

mod test1 {
    use proc_macro_helper::diagnostic;

    #[diagnostic]
    struct Foo;

}

mod test2 {
    mod diagnostic {
        pub use proc_macro_helper::diagnostic as on_unimplemented;
    }

    #[diagnostic::on_unimplemented]
    trait Foo {}
}

fn main() {}