]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-20692.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-20692.stderr
1 error[E0038]: the trait `Array` cannot be made into an object
2 --> $DIR/issue-20692.rs:7:5
3 |
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 ...
10 LL | &dyn Array;
11 | ^^^^^^^^^^ the trait `Array` cannot be made into an object
12
13 error[E0038]: the trait `Array` cannot be made into an object
14 --> $DIR/issue-20692.rs:4:13
15 |
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 ...
22 LL | let _ = x
23 | ^ the trait `Array` cannot be made into an object
24 |
25 = note: required because of the requirements on the impl of `CoerceUnsized<&dyn Array>` for `&T`
26 = note: required by cast to type `&dyn Array`
27
28 error: aborting due to 2 previous errors
29
30 For more information about this error, try `rustc --explain E0038`.