summary refs log tree commit diff
path: root/src/test/ui/proc-macro/attribute.stderr
blob: a8fecd2d2dea8980592ebeb54bc5298926cc1f5a (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
error: attribute must be of form: #[proc_macro_derive(TraitName)]
  --> $DIR/attribute.rs:8:1
   |
LL | #[proc_macro_derive]
   | ^^^^^^^^^^^^^^^^^^^^

error: attribute must be of form: #[proc_macro_derive(TraitName)]
  --> $DIR/attribute.rs:14:1
   |
LL | #[proc_macro_derive = "foo"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: must only be one word
  --> $DIR/attribute.rs:21:5
   |
LL |     a = "b"
   |     ^^^^^^^

error: attribute must have either one or two arguments
  --> $DIR/attribute.rs:28:1
   |
LL | #[proc_macro_derive(b, c, d)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: must only be one word
  --> $DIR/attribute.rs:34:21
   |
LL | #[proc_macro_derive(d(e))]
   |                     ^^^^

error: must only be one word
  --> $DIR/attribute.rs:40:35
   |
LL | #[proc_macro_derive(f, attributes(g = "h"))]
   |                                   ^^^^^^^

error: must only be one word
  --> $DIR/attribute.rs:46:35
   |
LL | #[proc_macro_derive(i, attributes(j(k)))]
   |                                   ^^^^

error: attribute must have either one or two arguments
  --> $DIR/attribute.rs:52:1
   |
LL | #[proc_macro_derive(l, attributes(m), n)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 8 previous errors