1 error[E0038]: the trait `Array` cannot be made into an object
2 --> $DIR/issue-20692.rs:7:5
5 | ^^^^^^^^^^ `Array` cannot be made into an object
7 note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
8 --> $DIR/issue-20692.rs:1:14
10 LL | trait Array: Sized + Copy {}
11 | ----- ^^^^^ ^^^^ ...because it requires `Self: Sized`
13 | | ...because it requires `Self: Sized`
14 | this trait cannot be made into an object...
16 error[E0038]: the trait `Array` cannot be made into an object
17 --> $DIR/issue-20692.rs:4:13
20 | ^ `Array` cannot be made into an object
22 note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
23 --> $DIR/issue-20692.rs:1:14
25 LL | trait Array: Sized + Copy {}
26 | ----- ^^^^^ ^^^^ ...because it requires `Self: Sized`
28 | | ...because it requires `Self: Sized`
29 | this trait cannot be made into an object...
30 = note: required because of the requirements on the impl of `CoerceUnsized<&dyn Array>` for `&T`
31 = note: required by cast to type `&dyn Array`
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0038`.