blob: 1cc824e943c75b7ce14848ded7fd7eaf8a4e987d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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() {}
|