]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20692.stderr
Auto merge of #78066 - bugadani:wat, r=jonas-schievink
[rust.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`.