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 @@ -144,6 +144,25 @@ fn deprecated_function() {}
144
144
```
145
145
"## ,
146
146
147
+ E0550 : r##"
148
+ More than one `deprecated` attribute has been put on an item.
149
+
150
+ Erroneous code example:
151
+
152
+ ```compile_fail,E0550
153
+ #[deprecated(note = "because why not?")]
154
+ #[deprecated(note = "right?")] // error!
155
+ fn the_banished() {}
156
+ ```
157
+
158
+ The `deprecated` attribute can only be present **once** on an item.
159
+
160
+ ```
161
+ #[deprecated(note = "because why not, right?")]
162
+ fn the_banished() {} // ok!
163
+ ```
164
+ "## ,
165
+
147
166
E0552 : r##"
148
167
A unrecognized representation attribute was used.
149
168
@@ -435,7 +454,6 @@ features in the `-Z allow_features` flag.
435
454
// rustc_deprecated attribute must be paired with either stable or unstable
436
455
// attribute
437
456
E0549 ,
438
- E0550 , // multiple deprecated attributes
439
457
E0551 , // incorrect meta item
440
458
E0553 , // multiple rustc_const_unstable attributes
441
459
// E0555, // replaced with a generic attribute input check
You can’t perform that action at this time.
0 commit comments