summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/deprecation-sanity.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/deprecation/deprecation-sanity.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/deprecation/deprecation-sanity.stderr')
-rw-r--r--tests/ui/deprecation/deprecation-sanity.stderr74
1 files changed, 74 insertions, 0 deletions
diff --git a/tests/ui/deprecation/deprecation-sanity.stderr b/tests/ui/deprecation/deprecation-sanity.stderr
new file mode 100644
index 000000000..8b2b480d1
--- /dev/null
+++ b/tests/ui/deprecation/deprecation-sanity.stderr
@@ -0,0 +1,74 @@
+error: multiple `deprecated` attributes
+ --> $DIR/deprecation-sanity.rs:27:1
+ |
+LL | #[deprecated(since = "a", note = "b")]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
+ |
+note: attribute also specified here
+ --> $DIR/deprecation-sanity.rs:26:1
+ |
+LL | #[deprecated(since = "a", note = "b")]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0541]: unknown meta item 'reason'
+ --> $DIR/deprecation-sanity.rs:4:43
+ |
+LL | #[deprecated(since = "a", note = "a", reason)]
+ | ^^^^^^ expected one of `since`, `note`
+
+error[E0551]: incorrect meta item
+ --> $DIR/deprecation-sanity.rs:7:31
+ |
+LL | #[deprecated(since = "a", note)]
+ | ^^^^
+
+error[E0551]: incorrect meta item
+ --> $DIR/deprecation-sanity.rs:10:18
+ |
+LL | #[deprecated(since, note = "a")]
+ | ^^^^^
+
+error[E0551]: incorrect meta item
+ --> $DIR/deprecation-sanity.rs:13:31
+ |
+LL | #[deprecated(since = "a", note(b))]
+ | ^^^^^^^
+
+error[E0551]: incorrect meta item
+ --> $DIR/deprecation-sanity.rs:16:18
+ |
+LL | #[deprecated(since(b), note = "a")]
+ | ^^^^^^^^
+
+error[E0565]: literal in `deprecated` value must be a string
+ --> $DIR/deprecation-sanity.rs:19:25
+ |
+LL | #[deprecated(note = b"test")]
+ | -^^^^^^
+ | |
+ | help: consider removing the prefix
+
+error[E0565]: item in `deprecated` must be a key/value pair
+ --> $DIR/deprecation-sanity.rs:22:18
+ |
+LL | #[deprecated("test")]
+ | ^^^^^^
+
+error[E0538]: multiple 'since' items
+ --> $DIR/deprecation-sanity.rs:30:27
+ |
+LL | #[deprecated(since = "a", since = "b", note = "c")]
+ | ^^^^^^^^^^^
+
+error: this `#[deprecated]` annotation has no effect
+ --> $DIR/deprecation-sanity.rs:35:1
+ |
+LL | #[deprecated = "hello"]
+ | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
+ |
+ = note: `#[deny(useless_deprecated)]` on by default
+
+error: aborting due to 10 previous errors
+
+Some errors have detailed explanations: E0538, E0541, E0551, E0565.
+For more information about an error, try `rustc --explain E0538`.