]> git.lizzy.rs Git - rust.git/blob - src/test/ui/proc-macro/attribute.stderr
Move former compile-fail-fulldeps tests to ui
[rust.git] / src / test / ui / proc-macro / attribute.stderr
1 error: attribute must be of form: #[proc_macro_derive(TraitName)]
2   --> $DIR/attribute.rs:18:1
3    |
4 LL | #[proc_macro_derive]
5    | ^^^^^^^^^^^^^^^^^^^^
6
7 error: attribute must be of form: #[proc_macro_derive(TraitName)]
8   --> $DIR/attribute.rs:24:1
9    |
10 LL | #[proc_macro_derive = "foo"]
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: must only be one word
14   --> $DIR/attribute.rs:31:5
15    |
16 LL |     a = "b"
17    |     ^^^^^^^
18
19 error: attribute must have either one or two arguments
20   --> $DIR/attribute.rs:38:1
21    |
22 LL | #[proc_macro_derive(b, c, d)]
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: must only be one word
26   --> $DIR/attribute.rs:44:21
27    |
28 LL | #[proc_macro_derive(d(e))]
29    |                     ^^^^
30
31 error: must only be one word
32   --> $DIR/attribute.rs:50:35
33    |
34 LL | #[proc_macro_derive(f, attributes(g = "h"))]
35    |                                   ^^^^^^^
36
37 error: must only be one word
38   --> $DIR/attribute.rs:56:35
39    |
40 LL | #[proc_macro_derive(i, attributes(j(k)))]
41    |                                   ^^^^
42
43 error: attribute must have either one or two arguments
44   --> $DIR/attribute.rs:62:1
45    |
46 LL | #[proc_macro_derive(l, attributes(m), n)]
47    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48
49 error: aborting due to 8 previous errors
50