]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
ff7c6d11 1error[E0038]: the trait `Array` cannot be made into an object
0731742a 2 --> $DIR/issue-20692.rs:7:5
ff7c6d11 3 |
74b04a01
XL
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...
dc9dc135
XL
10LL | &dyn Array;
11 | ^^^^^^^^^^ the trait `Array` cannot be made into an object
ff7c6d11
XL
12
13error[E0038]: the trait `Array` cannot be made into an object
0731742a 14 --> $DIR/issue-20692.rs:4:13
ff7c6d11 15 |
74b04a01
XL
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...
0531ce1d 22LL | 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
28error: aborting due to 2 previous errors
29
0531ce1d 30For more information about this error, try `rustc --explain E0038`.