blob: a649a4eee55700ad9383c1d64ab898899459dbc8 [file] [log] [blame]
error[E0404]: expected trait, found struct `Foo`
--> $DIR/trait-bounds-not-on-struct.rs:5:16
|
LL | fn foo(_x: Box<Foo + Send>) { }
| ^^^ not a trait
error[E0404]: expected trait, found struct `Vec`
--> $DIR/trait-bounds-not-on-struct.rs:7:21
|
LL | type A<T> = Box<dyn Vec<T>>;
| ^^^^^^ not a trait
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0404`.