]>
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 | | |
74b04a01 XL |
4 | LL | 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 | ... | |
dc9dc135 XL |
10 | LL | &dyn Array; |
11 | | ^^^^^^^^^^ the trait `Array` cannot be made into an object | |
ff7c6d11 XL |
12 | |
13 | error[E0038]: the trait `Array` cannot be made into an object | |
0731742a | 14 | --> $DIR/issue-20692.rs:4:13 |
ff7c6d11 | 15 | | |
74b04a01 XL |
16 | LL | 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 | ... | |
0531ce1d | 22 | LL | let _ = x |
ff7c6d11 XL |
23 | | ^ the trait `Array` cannot be made into an object |
24 | | | |
1b1a35ee | 25 | = note: required because of the requirements on the impl of `CoerceUnsized<&dyn Array>` for `&T` |
e74abb32 | 26 | = note: required by cast to type `&dyn Array` |
ff7c6d11 XL |
27 | |
28 | error: aborting due to 2 previous errors | |
29 | ||
0531ce1d | 30 | For more information about this error, try `rustc --explain E0038`. |