rust/src/test/ui/issue-20692.stderr
Zack M. Davis 4b1808578a add dyn to display of dynamic (trait) type names
The `dyn Trait` syntax was stabilized in 199ee327. Resolves #49277.
2018-06-23 18:10:25 -07:00

21 lines
708 B
Plaintext

error[E0038]: the trait `Array` cannot be made into an object
--> $DIR/issue-20692.rs:17:5
|
LL | &Array;
| ^^^^^^ the trait `Array` cannot be made into an object
|
= note: the trait cannot require that `Self : Sized`
error[E0038]: the trait `Array` cannot be made into an object
--> $DIR/issue-20692.rs:14:13
|
LL | let _ = x
| ^ the trait `Array` cannot be made into an object
|
= note: the trait cannot require that `Self : Sized`
= note: required because of the requirements on the impl of `std::ops::CoerceUnsized<&dyn Array>` for `&T`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0038`.