fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0038]: the trait `Foo` cannot be made into an object 2 --> $DIR/issue-38604.rs:14:13 3 | 4LL | let _f: Box<dyn Foo> = 5 | ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object 6 | 7 = note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses 8 9error[E0038]: the trait `Foo` cannot be made into an object 10 --> $DIR/issue-38604.rs:15:9 11 | 12LL | Box::new(()); 13 | ^^^^^^^^^^^^ the trait `Foo` cannot be made into an object 14 | 15 = note: the trait cannot use `Self` as a type parameter in the supertraits or where-clauses 16 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<dyn Foo>>` for `std::boxed::Box<()>` 17 = note: required by cast to type `std::boxed::Box<dyn Foo>` 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0038`.