about summary refs log tree commit diff
path: root/tests/ui/attributes/invalid-macro-use.stderr
blob: 4f5db5c558a5cbc2af52e16a40fa097325a4835f (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
error[E0469]: imported macro not found
  --> $DIR/invalid-macro-use.rs:47:13
   |
LL | #[macro_use(a)]
   |             ^

error[E0469]: imported macro not found
  --> $DIR/invalid-macro-use.rs:49:13
   |
LL | #[macro_use(b)]
   |             ^

error: valid forms for the attribute are `#[macro_use(name1, name2, ...)]` and `#[macro_use]`
  --> $DIR/invalid-macro-use.rs:4:1
   |
LL | #[macro_use = 5]
   | ^^^^^^^^^^^^^^^^

error[E0539]: malformed `macro_use` attribute input
  --> $DIR/invalid-macro-use.rs:8:1
   |
LL | #[macro_use(5)]
   | ^^^^^^^^^^^^-^^
   |             |
   |             expected a valid identifier here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[macro_use(5)]
LL + #[macro_use(name1, name2, ...)]
   |
LL - #[macro_use(5)]
LL + #[macro_use]
   |

error[E0565]: malformed `macro_use` attribute input
  --> $DIR/invalid-macro-use.rs:13:1
   |
LL | #[macro_use(a = "b")]
   | ^^^^^^^^^^^^^^-----^^
   |               |
   |               didn't expect any arguments here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[macro_use(a = "b")]
LL + #[macro_use(name1, name2, ...)]
   |
LL - #[macro_use(a = "b")]
LL + #[macro_use]
   |

error[E0565]: malformed `macro_use` attribute input
  --> $DIR/invalid-macro-use.rs:18:1
   |
LL | #[macro_use(a(b))]
   | ^^^^^^^^^^^^^---^^
   |              |
   |              didn't expect any arguments here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[macro_use(a(b))]
LL + #[macro_use(name1, name2, ...)]
   |
LL - #[macro_use(a(b))]
LL + #[macro_use]
   |

error[E0539]: malformed `macro_use` attribute input
  --> $DIR/invalid-macro-use.rs:23:1
   |
LL | #[macro_use(a::b)]
   | ^^^^^^^^^^^^----^^
   |             |
   |             expected a valid identifier here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[macro_use(a::b)]
LL + #[macro_use(name1, name2, ...)]
   |
LL - #[macro_use(a::b)]
LL + #[macro_use]
   |

error: unused attribute
  --> $DIR/invalid-macro-use.rs:28:1
   |
LL | #[macro_use(a)]
   | ^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> $DIR/invalid-macro-use.rs:30:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^
note: the lint level is defined here
  --> $DIR/invalid-macro-use.rs:1:9
   |
LL | #![deny(unused_attributes)]
   |         ^^^^^^^^^^^^^^^^^

error: unused attribute
  --> $DIR/invalid-macro-use.rs:36:1
   |
LL | #[macro_use(a)]
   | ^^^^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> $DIR/invalid-macro-use.rs:34:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error: unused attribute
  --> $DIR/invalid-macro-use.rs:42:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^ help: remove this attribute
   |
note: attribute also specified here
  --> $DIR/invalid-macro-use.rs:40:1
   |
LL | #[macro_use]
   | ^^^^^^^^^^^^

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0469, E0539, E0565.
For more information about an error, try `rustc --explain E0469`.