rust/src/test/ui/deprecation/invalid-literal.stderr

17 lines
478 B
Plaintext
Raw Normal View History

error: malformed `deprecated` attribute input
--> $DIR/invalid-literal.rs:1:1
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated = b"test"]
| ^^^^^^^^^^^^^^^^^^^^^^^
help: the following are the possible correct uses
|
LL | #[deprecated]
| ^^^^^^^^^^^^^
LL | #[deprecated(/*opt*/ since = "version", /*opt*/ note = "reason")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | #[deprecated = "reason"]
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error