summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/invalid-literal.stderr
blob: b56eedeb80d16a1080861467b6c8a91a011264b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: malformed `deprecated` attribute input
  --> $DIR/invalid-literal.rs:1:1
   |
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 previous error