2016-11-08 21:45:02 +10:30
|
|
|
// aux-build:derive-b.rs
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate derive_b;
|
|
|
|
|
2018-09-24 02:26:26 +03:00
|
|
|
#[B]
|
|
|
|
#[C] //~ ERROR attribute `C` is currently unknown to the compiler
|
2016-11-08 21:45:02 +10:30
|
|
|
#[B(D)]
|
|
|
|
#[B(E = "foo")]
|
2018-08-17 13:17:39 +03:00
|
|
|
#[B(arbitrary tokens)]
|
2018-09-16 17:15:07 +03:00
|
|
|
#[derive(B)]
|
2016-11-08 21:45:02 +10:30
|
|
|
struct B;
|
|
|
|
|
|
|
|
fn main() {}
|