blob: 6aac5c969d23bf723fe47b203813ec6736dcad9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#### Note: this error code is no longer emitted by the compiler
More than one `deprecated` attribute has been put on an item.
Erroneous code example:
```compile_fail
#[deprecated(note = "because why not?")]
#[deprecated(note = "right?")] // error!
fn the_banished() {}
```
The `deprecated` attribute can only be present **once** on an item.
```
#[deprecated(note = "because why not, right?")]
fn the_banished() {} // ok!
```
|