diff options
Diffstat (limited to 'tests/ui/deprecation/invalid-literal.stderr')
-rw-r--r-- | tests/ui/deprecation/invalid-literal.stderr | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/deprecation/invalid-literal.stderr b/tests/ui/deprecation/invalid-literal.stderr new file mode 100644 index 000000000..b56eedeb8 --- /dev/null +++ b/tests/ui/deprecation/invalid-literal.stderr @@ -0,0 +1,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 + |