2023-07-27 08:29:53 +00:00
|
|
|
//@ check-pass
|
2019-05-21 22:09:58 +00:00
|
|
|
//@ aux-build:test-macros.rs
|
2018-09-13 02:11:13 +00:00
|
|
|
|
|
|
|
#[macro_use]
|
2019-05-21 22:09:58 +00:00
|
|
|
extern crate test_macros;
|
2018-09-13 02:11:13 +00:00
|
|
|
|
|
|
|
mod m1 {
|
2019-05-21 22:09:58 +00:00
|
|
|
use m2::Empty;
|
2018-09-13 02:11:13 +00:00
|
|
|
|
2019-05-21 22:09:58 +00:00
|
|
|
#[derive(Empty)]
|
2018-09-13 02:11:13 +00:00
|
|
|
struct A {}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod m2 {
|
2019-05-21 22:09:58 +00:00
|
|
|
pub type Empty = u8;
|
2018-09-13 02:11:13 +00:00
|
|
|
|
2019-05-21 22:09:58 +00:00
|
|
|
#[derive(Empty)]
|
|
|
|
#[empty_helper]
|
2018-09-13 02:11:13 +00:00
|
|
|
struct B {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|