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-08 14:19:53 -05:00
|
|
|
// aux-build:derive-helper-shadowed-2.rs
|
|
|
|
|
|
|
|
#[macro_use]
|
2019-05-21 17:09:58 -05:00
|
|
|
extern crate test_macros;
|
|
|
|
#[macro_use(empty_helper)]
|
2018-09-08 14:19:53 -05:00
|
|
|
extern crate derive_helper_shadowed_2;
|
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
macro_rules! empty_helper { () => () }
|
2018-09-08 14:19:53 -05:00
|
|
|
|
2019-05-21 17:09:58 -05:00
|
|
|
#[derive(Empty)]
|
|
|
|
#[empty_helper] // OK
|
2018-09-08 14:19:53 -05:00
|
|
|
struct S;
|
|
|
|
|
|
|
|
fn main() {}
|