mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
582 B
Plaintext
17 lines
582 B
Plaintext
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
|
|
|