]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/invalid-literal.stderr
Cache expansion hash.
[rust.git] / src / test / ui / deprecation / invalid-literal.stderr
1 error: malformed `deprecated` attribute input
2   --> $DIR/invalid-literal.rs:1:1
3    |
4 LL | #[deprecated = b"test"]
5    | ^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 help: the following are the possible correct uses
8    |
9 LL | #[deprecated]
10    | ^^^^^^^^^^^^^
11 LL | #[deprecated(/*opt*/ since = "version", /*opt*/ note = "reason")]
12    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 LL | #[deprecated = "reason"]
14    | ^^^^^^^^^^^^^^^^^^^^^^^^
15
16 error: aborting due to previous error
17