mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 13:07:37 +00:00
24 lines
350 B
Rust
24 lines
350 B
Rust
![]() |
//@ 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() {}
|