File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,25 @@ fn the_banished() {} // ok!
163
163
```
164
164
"## ,
165
165
166
+ E0551 : r##"
167
+ An invalid meta-item was used inside an attribute.
168
+
169
+ Erroneous code example:
170
+
171
+ ```compile_fail,E0551
172
+ #[deprecated(note)] // error!
173
+ fn i_am_deprecated() {}
174
+ ```
175
+
176
+ Meta items are the key-value pairs inside of an attribute. To fix this issue,
177
+ you need to give a value to the `note` key. Example:
178
+
179
+ ```
180
+ #[deprecated(note = "because")] // ok!
181
+ fn i_am_deprecated() {}
182
+ ```
183
+ "## ,
184
+
166
185
E0552 : r##"
167
186
A unrecognized representation attribute was used.
168
187
@@ -454,7 +473,6 @@ features in the `-Z allow_features` flag.
454
473
// rustc_deprecated attribute must be paired with either stable or unstable
455
474
// attribute
456
475
E0549 ,
457
- E0551 , // incorrect meta item
458
476
E0553 , // multiple rustc_const_unstable attributes
459
477
// E0555, // replaced with a generic attribute input check
460
478
E0556 , // malformed feature, expected just one word
You can’t perform that action at this time.
0 commit comments