fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0038]: the trait `Array` cannot be made into an object 2 --> $DIR/issue-20692.rs:7:5 3 | 4LL | trait Array: Sized + Copy {} 5 | ----- ----- ---- ...because it requires `Self: Sized` 6 | | | 7 | | ...because it requires `Self: Sized` 8 | this trait cannot be made into an object... 9... 10LL | &dyn Array; 11 | ^^^^^^^^^^ the trait `Array` cannot be made into an object 12 13error[E0038]: the trait `Array` cannot be made into an object 14 --> $DIR/issue-20692.rs:4:13 15 | 16LL | trait Array: Sized + Copy {} 17 | ----- ----- ---- ...because it requires `Self: Sized` 18 | | | 19 | | ...because it requires `Self: Sized` 20 | this trait cannot be made into an object... 21... 22LL | let _ = x 23 | ^ the trait `Array` cannot be made into an object 24 | 25 = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&dyn Array>` for `&T` 26 = note: required by cast to type `&dyn Array` 27 28error: aborting due to 2 previous errors 29 30For more information about this error, try `rustc --explain E0038`.