about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0565-1.stderr
blob: 52daf2a62fcd552cf66d4d6fccd0d8e0243adb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error[E0565]: malformed `deprecated` attribute input
  --> $DIR/E0565-1.rs:2:1
   |
LL | #[deprecated("since")]
   | ^^^^^^^^^^^^^-------^^
   |              |
   |              didn't expect a literal here
   |
help: try changing it to one of the following valid forms of the attribute
   |
LL - #[deprecated("since")]
LL + #[deprecated = "reason"]
   |
LL - #[deprecated("since")]
LL + #[deprecated(note = "reason")]
   |
LL - #[deprecated("since")]
LL + #[deprecated(since = "version")]
   |
LL - #[deprecated("since")]
LL + #[deprecated(since = "version", note = "reason")]
   |
   = and 1 other candidate

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0565`.