]> git.lizzy.rs Git - rust.git/blob - src/test/ui/deprecation/invalid-literal.stderr
Rollup merge of #90498 - joshtriplett:target-tier-policy-draft-updates, r=Mark-Simulacrum
[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 = "reason"]
10    | ~~~~~~~~~~~~~~~~~~~~~~~~
11 LL | #[deprecated(/*opt*/ since = "version", /*opt*/ note = "reason")]
12    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 LL | #[deprecated]
14    | ~~~~~~~~~~~~~
15
16 error: aborting due to previous error
17