2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2024-11-24 17:37:25 -08:00
|
|
|
//@ proc-macro: test-macros.rs
|
2019-05-22 01:09:58 +03:00
|
|
|
|
|
|
|
|
#[macro_use(Empty)]
|
|
|
|
|
extern crate test_macros;
|
|
|
|
|
|
|
|
|
|
use self::one::*;
|
|
|
|
|
use self::two::*;
|
|
|
|
|
|
|
|
|
|
mod empty_helper {}
|
|
|
|
|
|
|
|
|
|
mod one {
|
|
|
|
|
use empty_helper;
|
|
|
|
|
|
|
|
|
|
#[derive(Empty)]
|
|
|
|
|
#[empty_helper]
|
|
|
|
|
struct One;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mod two {
|
|
|
|
|
use empty_helper;
|
|
|
|
|
|
|
|
|
|
#[derive(Empty)]
|
|
|
|
|
#[empty_helper]
|
|
|
|
|
struct Two;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|