2016-11-08 11:15:02 +00:00
|
|
|
// aux-build:derive-b.rs
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate derive_b;
|
|
|
|
|
2018-12-16 17:23:27 +00:00
|
|
|
#[B] //~ ERROR `B` is ambiguous
|
2020-11-14 11:47:14 +00:00
|
|
|
//~| WARN derive helper attribute is used before it is introduced
|
|
|
|
//~| WARN this was previously accepted
|
2019-09-15 09:55:18 +00:00
|
|
|
#[C] //~ ERROR cannot find attribute `C` in this scope
|
2018-12-16 17:23:27 +00:00
|
|
|
#[B(D)] //~ ERROR `B` is ambiguous
|
2020-11-14 11:47:14 +00:00
|
|
|
//~| WARN derive helper attribute is used before it is introduced
|
|
|
|
//~| WARN this was previously accepted
|
2018-12-16 17:23:27 +00:00
|
|
|
#[B(E = "foo")] //~ ERROR `B` is ambiguous
|
2020-11-14 11:47:14 +00:00
|
|
|
//~| WARN derive helper attribute is used before it is introduced
|
|
|
|
//~| WARN this was previously accepted
|
2018-12-16 17:23:27 +00:00
|
|
|
#[B(arbitrary tokens)] //~ ERROR `B` is ambiguous
|
2020-11-14 11:47:14 +00:00
|
|
|
//~| WARN derive helper attribute is used before it is introduced
|
|
|
|
//~| WARN this was previously accepted
|
2018-09-16 14:15:07 +00:00
|
|
|
#[derive(B)]
|
2016-11-08 11:15:02 +00:00
|
|
|
struct B;
|
|
|
|
|
|
|
|
fn main() {}
|