rust/tests/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
582 B
Plaintext
Raw Normal View History

2021-10-03 01:53:02 -05:00
warning: trait bound Vec<str>: Debug does not depend on any type or lifetime parameters
2018-12-25 09:56:47 -06:00
--> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:30
2018-05-06 16:54:00 -05:00
|
LL | pub fn foo() where Vec<str>: Debug, str: Copy {
| ^^^^^
2018-05-06 16:54:00 -05:00
|
= note: `#[warn(trivial_bounds)]` on by default
2018-05-06 16:54:00 -05:00
2021-10-03 01:53:02 -05:00
warning: trait bound str: Copy does not depend on any type or lifetime parameters
2018-12-25 09:56:47 -06:00
--> $DIR/trivial-bounds-inconsistent-well-formed.rs:7:42
2018-05-06 16:54:00 -05:00
|
LL | pub fn foo() where Vec<str>: Debug, str: Copy {
| ^^^^
2018-05-06 16:54:00 -05:00
warning: 2 warnings emitted