fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

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