]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0550.md
Rollup merge of #106946 - dtolnay:hashlinecolumn, r=m-ou-se
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0550.md
1 #### Note: this error code is no longer emitted by the compiler
2
3 More than one `deprecated` attribute has been put on an item.
4
5 Erroneous code example:
6
7 ```compile_fail
8 #[deprecated(note = "because why not?")]
9 #[deprecated(note = "right?")] // error!
10 fn the_banished() {}
11 ```
12
13 The `deprecated` attribute can only be present **once** on an item.
14
15 ```
16 #[deprecated(note = "because why not, right?")]
17 fn the_banished() {} // ok!
18 ```