2019-05-22 00:47:23 +00:00
|
|
|
error: malformed `deprecated` attribute input
|
2019-02-04 17:41:01 +00:00
|
|
|
--> $DIR/invalid-literal.rs:1:1
|
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | #[deprecated = b"test"]
|
2019-02-04 17:41:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2019-05-22 00:47:23 +00:00
|
|
|
help: the following are the possible correct uses
|
|
|
|
|
|
|
|
|
LL | #[deprecated = "reason"]
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~
|
2021-10-01 18:09:31 +00:00
|
|
|
LL | #[deprecated(/*opt*/ since = "version", /*opt*/ note = "reason")]
|
|
|
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
LL | #[deprecated]
|
|
|
|
| ~~~~~~~~~~~~~
|
2019-02-04 17:41:01 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|