2019-05-21 17:09:58 -05:00
|
|
|
// aux-build:test-macros.rs
|
|
|
|
|
|
|
|
#[macro_use(Empty)]
|
|
|
|
extern crate test_macros;
|
|
|
|
use test_macros::empty_attr as empty_helper;
|
|
|
|
|
|
|
|
#[empty_helper] //~ ERROR `empty_helper` is ambiguous
|
2020-11-14 05:47:14 -06:00
|
|
|
//~| WARN derive helper attribute is used before it is introduced
|
|
|
|
//~| WARN this was previously accepted
|
|
|
|
#[derive(Empty)]
|
2019-05-21 17:09:58 -05:00
|
|
|
struct S;
|
|
|
|
|
|
|
|
fn main() {}
|