1
Fork 0
rust/src/test/ui/proc-macro/proc-macro-attributes.rs

15 lines
218 B
Rust
Raw Normal View History

// aux-build:derive-b.rs
#[macro_use]
extern crate derive_b;
#[B]
#[C] //~ ERROR attribute `C` is currently unknown to the compiler
#[B(D)]
#[B(E = "foo")]
#[B(arbitrary tokens)]
#[derive(B)]
struct B;
fn main() {}