summaryrefslogtreecommitdiffstats
path: root/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
blob: 8f58a99a86f9153f8627e56745a92e8d1a786008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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