summaryrefslogtreecommitdiffstats
path: root/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr')
-rw-r--r--tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
new file mode 100644
index 000000000..8f58a99a8
--- /dev/null
+++ b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
@@ -0,0 +1,16 @@
+warning: trait bound Vec<str>: Debug does not depend on any type or lifetime parameters
+ --> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:30
+ |
+LL | pub fn foo() where Vec<str>: Debug, str: Copy {
+ | ^^^^^
+ |
+ = note: `#[warn(trivial_bounds)]` on by default
+
+warning: trait bound str: Copy does not depend on any type or lifetime parameters
+ --> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:42
+ |
+LL | pub fn foo() where Vec<str>: Debug, str: Copy {
+ | ^^^^
+
+warning: 2 warnings emitted
+