]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tool-attributes/tool-attributes-misplaced-1.stderr
Update tests.
[rust.git] / src / test / ui / tool-attributes / tool-attributes-misplaced-1.stderr
1 error: cannot find derive macro `rustfmt` in this scope
2   --> $DIR/tool-attributes-misplaced-1.rs:4:10
3    |
4 LL | #[derive(rustfmt)]
5    |          ^^^^^^^
6    |
7    = note: `rustfmt` is in scope, but it is not a derive macro
8
9 error: cannot find derive macro `rustfmt` in this scope
10   --> $DIR/tool-attributes-misplaced-1.rs:4:10
11    |
12 LL | #[derive(rustfmt)]
13    |          ^^^^^^^
14    |
15    = note: `rustfmt` is in scope, but it is not a derive macro
16
17 error: cannot find attribute `rustfmt` in this scope
18   --> $DIR/tool-attributes-misplaced-1.rs:9:3
19    |
20 LL | #[rustfmt]
21    |   ^^^^^^^
22    |
23    = note: `rustfmt` is in scope, but it is not an attribute
24
25 error: cannot find macro `rustfmt` in this scope
26   --> $DIR/tool-attributes-misplaced-1.rs:15:5
27    |
28 LL |     rustfmt!();
29    |     ^^^^^^^
30    |
31    = note: `rustfmt` is in scope, but it is not a macro
32
33 error[E0573]: expected type, found tool module `rustfmt`
34   --> $DIR/tool-attributes-misplaced-1.rs:1:10
35    |
36 LL | type A = rustfmt;
37    |          ^^^^^^^ not a type
38
39 error[E0573]: expected type, found tool attribute `rustfmt::skip`
40   --> $DIR/tool-attributes-misplaced-1.rs:2:10
41    |
42 LL | type B = rustfmt::skip;
43    |          ^^^^^^^^^^^^^ not a type
44
45 error[E0423]: expected value, found tool module `rustfmt`
46   --> $DIR/tool-attributes-misplaced-1.rs:14:5
47    |
48 LL |     rustfmt;
49    |     ^^^^^^^ not a value
50
51 error[E0423]: expected value, found tool attribute `rustfmt::skip`
52   --> $DIR/tool-attributes-misplaced-1.rs:17:5
53    |
54 LL |     rustfmt::skip;
55    |     ^^^^^^^^^^^^^ not a value
56
57 error: aborting due to 8 previous errors
58
59 Some errors have detailed explanations: E0423, E0573.
60 For more information about an error, try `rustc --explain E0423`.