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