From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../trivial-bounds-inconsistent-well-formed.stderr | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr (limited to 'tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr') 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: 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: 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: Debug, str: Copy { + | ^^^^ + +warning: 2 warnings emitted + -- cgit v1.2.3