]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/trait-bounds-not-on-struct.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / traits / trait-bounds-not-on-struct.stderr
CommitLineData
b7449926 1error[E0404]: expected trait, found struct `Foo`
0731742a 2 --> $DIR/trait-bounds-not-on-struct.rs:5:16
b7449926
XL
3 |
4LL | fn foo(_x: Box<Foo + Send>) { } //~ ERROR expected trait, found struct `Foo`
5 | ^^^ not a trait
6
7error[E0404]: expected trait, found struct `Vec`
0731742a 8 --> $DIR/trait-bounds-not-on-struct.rs:7:21
b7449926
XL
9 |
10LL | type A<T> = Box<dyn Vec<T>>; //~ ERROR expected trait, found struct `Vec`
11 | ^^^^^^ not a trait
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0404`.