]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0550.md
Rollup merge of #92310 - ehuss:rustdoc-ice, r=estebank
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0550.md
1 More than one `deprecated` attribute has been put on an item.
2
3 Erroneous code example:
4
5 ```compile_fail,E0550
6 #[deprecated(note = "because why not?")]
7 #[deprecated(note = "right?")] // error!
8 fn the_banished() {}
9 ```
10
11 The `deprecated` attribute can only be present **once** on an item.
12
13 ```
14 #[deprecated(note = "because why not, right?")]
15 fn the_banished() {} // ok!
16 ```