rust/tests/ui/deprecation/invalid-literal.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
485 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 = "reason"]
| ~~~~~~~~~~~~~~~~~~~~~~~~
LL | #[deprecated(/*opt*/ since = "version", /*opt*/ note = "reason")]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LL | #[deprecated]
| ~~~~~~~~~~~~~
error: aborting due to 1 previous error