rust/tests/ui/error-codes/E0565-1.stderr
2025-06-17 23:22:51 +02:00

23 lines
621 B
Text

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(/*opt*/ since = "version", /*opt*/ note = "reason")]
|
LL - #[deprecated("since")]
LL + #[deprecated]
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0565`.