summary refs log tree commit diff
path: root/src/test/ui/proc-macro/proc-macro-attributes.stderr
blob: 3ac93a748523aa48331e51f8d3489f63d96d8b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
error: cannot find attribute `C` in this scope
  --> $DIR/proc-macro-attributes.rs:7:3
   |
LL | #[C]
   |   ^ help: a derive helper attribute with a similar name exists: `B`

error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
  --> $DIR/proc-macro-attributes.rs:6:3
   |
LL | #[B]
   |   ^ ambiguous name
   |
note: `B` could refer to the derive helper attribute defined here
  --> $DIR/proc-macro-attributes.rs:11:10
   |
LL | #[derive(B)]
   |          ^
note: `B` could also refer to the derive macro imported here
  --> $DIR/proc-macro-attributes.rs:3:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
  --> $DIR/proc-macro-attributes.rs:8:3
   |
LL | #[B(D)]
   |   ^ ambiguous name
   |
note: `B` could refer to the derive helper attribute defined here
  --> $DIR/proc-macro-attributes.rs:11:10
   |
LL | #[derive(B)]
   |          ^
note: `B` could also refer to the derive macro imported here
  --> $DIR/proc-macro-attributes.rs:3:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
  --> $DIR/proc-macro-attributes.rs:9:3
   |
LL | #[B(E = "foo")]
   |   ^ ambiguous name
   |
note: `B` could refer to the derive helper attribute defined here
  --> $DIR/proc-macro-attributes.rs:11:10
   |
LL | #[derive(B)]
   |          ^
note: `B` could also refer to the derive macro imported here
  --> $DIR/proc-macro-attributes.rs:3:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error[E0659]: `B` is ambiguous (derive helper attribute vs any other name)
  --> $DIR/proc-macro-attributes.rs:10:3
   |
LL | #[B(arbitrary tokens)]
   |   ^ ambiguous name
   |
note: `B` could refer to the derive helper attribute defined here
  --> $DIR/proc-macro-attributes.rs:11:10
   |
LL | #[derive(B)]
   |          ^
note: `B` could also refer to the derive macro imported here
  --> $DIR/proc-macro-attributes.rs:3:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0659`.