2016-11-08 05:15:02 -06:00
|
|
|
// aux-build:derive-b.rs
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate derive_b;
|
|
|
|
|
2018-12-16 11:23:27 -06:00
|
|
|
#[B] //~ ERROR `B` 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
|
2019-09-15 04:55:18 -05:00
|
|
|
#[C] //~ ERROR cannot find attribute `C` in this scope
|
2018-12-16 11:23:27 -06:00
|
|
|
#[B(D)] //~ ERROR `B` 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
|
2018-12-16 11:23:27 -06:00
|
|
|
#[B(E = "foo")] //~ ERROR `B` 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
|
2018-12-16 11:23:27 -06:00
|
|
|
#[B(arbitrary tokens)] //~ ERROR `B` 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
|
2018-09-16 09:15:07 -05:00
|
|
|
#[derive(B)]
|
2016-11-08 05:15:02 -06:00
|
|
|
struct B;
|
|
|
|
|
|
|
|
fn main() {}
|