mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
485 B
Plaintext
18 lines
485 B
Plaintext
error: malformed `deprecated` attribute input
|
|
--> $DIR/invalid-literal.rs:1:1
|
|
|
|
|
LL | #[deprecated = b"test"]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
LL | #[deprecated = "reason"]
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~
|
|
LL | #[deprecated(/*opt*/ since = "version", /*opt*/ note = "reason")]
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
LL | #[deprecated]
|
|
| ~~~~~~~~~~~~~
|
|
|
|
error: aborting due to 1 previous error
|
|
|