about summary refs log tree commit diff
path: root/src/test/ui/proc-macro/attribute.stderr
blob: 231eb1f10689842c97c5c5a785caab94ea175cef (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: 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: attribute must be of the form `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
  --> $DIR/attribute.rs:8:1
   |
LL | #[proc_macro_derive]
   | ^^^^^^^^^^^^^^^^^^^^

error: attribute must be of the form `#[proc_macro_derive(TraitName, /*opt*/ attributes(name1, name2, ...))]`
  --> $DIR/attribute.rs:14:1
   |
LL | #[proc_macro_derive = "foo"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 8 previous errors