rust/tests/ui/proc-macro/issue-53481.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
264 B
Rust
Raw Permalink Normal View History

//@ check-pass
//@ proc-macro: test-macros.rs
#[macro_use]
extern crate test_macros;
mod m1 {
use m2::Empty;
#[derive(Empty)]
struct A {}
}
mod m2 {
pub type Empty = u8;
#[derive(Empty)]
#[empty_helper]
struct B {}
}
fn main() {}