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