]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / trivial-bounds / trivial-bounds-inconsistent-well-formed.stderr
1 warning: Trait bound std::vec::Vec<str>: std::fmt::Debug does not depend on any type or lifetime parameters
2   --> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:30
3    |
4 LL | pub fn foo() where Vec<str>: Debug, str: Copy {
5    |                              ^^^^^
6    |
7    = note: #[warn(trivial_bounds)] on by default
8
9 warning: Trait bound str: std::marker::Copy does not depend on any type or lifetime parameters
10   --> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:42
11    |
12 LL | pub fn foo() where Vec<str>: Debug, str: Copy {
13    |                                          ^^^^
14