From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../trivial-bounds-inconsistent-sized.stderr | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr (limited to 'tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr') diff --git a/tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr new file mode 100644 index 000000000..cf24d811c --- /dev/null +++ b/tests/ui/trivial-bounds/trivial-bounds-inconsistent-sized.stderr @@ -0,0 +1,22 @@ +warning: trait bound str: Sized does not depend on any type or lifetime parameters + --> $DIR/trivial-bounds-inconsistent-sized.rs:14:31 + | +LL | struct S(str, str) where str: Sized; + | ^^^^^ + | + = note: `#[warn(trivial_bounds)]` on by default + +warning: trait bound for<'a> T<(dyn A + 'a)>: Sized does not depend on any type or lifetime parameters + --> $DIR/trivial-bounds-inconsistent-sized.rs:17:49 + | +LL | fn unsized_local() where for<'a> T: Sized { + | ^^^^^ + +warning: trait bound str: Sized does not depend on any type or lifetime parameters + --> $DIR/trivial-bounds-inconsistent-sized.rs:22:35 + | +LL | fn return_str() -> str where str: Sized { + | ^^^^^ + +warning: 3 warnings emitted + -- cgit v1.2.3