]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0038]: the trait `Array` cannot be made into an object |
0731742a | 2 | --> $DIR/issue-20692.rs:7:5 |
ff7c6d11 | 3 | | |
dc9dc135 XL |
4 | LL | &dyn Array; |
5 | | ^^^^^^^^^^ the trait `Array` cannot be made into an object | |
ff7c6d11 XL |
6 | | |
7 | = note: the trait cannot require that `Self : Sized` | |
8 | ||
9 | error[E0038]: the trait `Array` cannot be made into an object | |
0731742a | 10 | --> $DIR/issue-20692.rs:4:13 |
ff7c6d11 | 11 | | |
0531ce1d | 12 | LL | let _ = x |
ff7c6d11 XL |
13 | | ^ the trait `Array` cannot be made into an object |
14 | | | |
15 | = note: the trait cannot require that `Self : Sized` | |
8faf50e0 | 16 | = note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&dyn Array>` for `&T` |
e74abb32 | 17 | = note: required by cast to type `&dyn Array` |
ff7c6d11 XL |
18 | |
19 | error: aborting due to 2 previous errors | |
20 | ||
0531ce1d | 21 | For more information about this error, try `rustc --explain E0038`. |