2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2019-05-21 17:09:58 -05:00
|
|
|
// aux-build:test-macros.rs
|
2018-09-12 21:11:13 -05:00
|
|
|
|
|
|
|
#[macro_use]
|
2019-05-21 17:09:58 -05:00
|
|
|
extern crate test_macros;
|
2018-09-12 21:11:13 -05:00
|
|
|
|
|
|
|
mod m1 {
|
2019-05-21 17:09:58 -05:00
|
|
|
use m2::Empty;
|
2018-09-12 21:11:13 -05:00
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
#[derive(Empty)]
|
2018-09-12 21:11:13 -05:00
|
|
|
struct A {}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod m2 {
|
2019-05-21 17:09:58 -05:00
|
|
|
pub type Empty = u8;
|
2018-09-12 21:11:13 -05:00
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
#[derive(Empty)]
|
|
|
|
#[empty_helper]
|
2018-09-12 21:11:13 -05:00
|
|
|
struct B {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|