blob: 014ec46f1b98148784613598841ad7cb33a3355a [file] [log] [blame] [edit]
//@ 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() {}