]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0404]: expected trait, found struct `Foo` |
0731742a | 2 | --> $DIR/trait-bounds-not-on-struct.rs:5:16 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | fn foo(_x: Box<Foo + Send>) { } |
b7449926 XL |
5 | | ^^^ not a trait |
6 | ||
7 | error[E0404]: expected trait, found struct `Vec` | |
0731742a | 8 | --> $DIR/trait-bounds-not-on-struct.rs:7:21 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | type A<T> = Box<dyn Vec<T>>; |
b7449926 XL |
11 | | ^^^^^^ not a trait |
12 | ||
13 | error: aborting due to 2 previous errors | |
14 | ||
15 | For more information about this error, try `rustc --explain E0404`. |