fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0038]: the trait `Trait` cannot be made into an object 2 --> $DIR/wf-convert-unsafe-trait-obj-box.rs:16:33 3 | 4LL | let t_box: Box<dyn Trait> = Box::new(S); 5 | ^^^^^^^^^^^ the trait `Trait` cannot be made into an object 6 | 7 = note: the trait cannot require that `Self : Sized` 8 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<dyn Trait>>` for `std::boxed::Box<S>` 9 = note: required by cast to type `std::boxed::Box<dyn Trait>` 10 11error[E0038]: the trait `Trait` cannot be made into an object 12 --> $DIR/wf-convert-unsafe-trait-obj-box.rs:17:15 13 | 14LL | takes_box(Box::new(S)); 15 | ^^^^^^^^^^^ the trait `Trait` cannot be made into an object 16 | 17 = note: the trait cannot require that `Self : Sized` 18 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<dyn Trait>>` for `std::boxed::Box<S>` 19 = note: required by cast to type `std::boxed::Box<(dyn Trait + 'static)>` 20 21error[E0038]: the trait `Trait` cannot be made into an object 22 --> $DIR/wf-convert-unsafe-trait-obj-box.rs:15:5 23 | 24LL | Box::new(S) as Box<dyn Trait>; 25 | ^^^^^^^^^^^ the trait `Trait` cannot be made into an object 26 | 27 = note: the trait cannot require that `Self : Sized` 28 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<std::boxed::Box<dyn Trait>>` for `std::boxed::Box<S>` 29 = note: required by cast to type `std::boxed::Box<dyn Trait>` 30 31error: aborting due to 3 previous errors 32 33For more information about this error, try `rustc --explain E0038`.