rust/src/test/ui/proc-macro/proc-macro-attributes.rs

16 lines
420 B
Rust
Raw Normal View History

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