diff options
Diffstat (limited to 'src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr')
-rw-r--r-- | src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr b/src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr new file mode 100644 index 000000000..8f58a99a8 --- /dev/null +++ b/src/test/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 + |