]> git.proxmox.com Git - rustc.git/blame - src/test/ui/trivial-bounds/trivial-bounds-inconsistent-well-formed.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / trivial-bounds / trivial-bounds-inconsistent-well-formed.stderr
CommitLineData
94b46f34 1warning: Trait bound std::vec::Vec<str>: std::fmt::Debug does not depend on any type or lifetime parameters
0bf4aa26 2 --> $DIR/trivial-bounds-inconsistent-well-formed.rs:17:30
94b46f34 3 |
0bf4aa26
XL
4LL | pub fn foo() where Vec<str>: Debug, str: Copy {
5 | ^^^^^
94b46f34
XL
6 |
7 = note: #[warn(trivial_bounds)] on by default
8
9warning: Trait bound str: std::marker::Copy does not depend on any type or lifetime parameters
0bf4aa26 10 --> $DIR/trivial-bounds-inconsistent-well-formed.rs:17:42
94b46f34 11 |
0bf4aa26
XL
12LL | pub fn foo() where Vec<str>: Debug, str: Copy {
13 | ^^^^
94b46f34 14