Files
rust/tests/ui/impl-trait/unsized_coercion.next.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
412 B
Plaintext
Raw Normal View History

2024-10-14 13:04:10 -04:00
error[E0277]: the size for values of type `dyn Trait` cannot be known at compilation time
--> $DIR/unsized_coercion.rs:14:17
2024-05-28 15:38:18 +00:00
|
LL | let x = hello();
2024-10-14 13:04:10 -04:00
| ^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `dyn Trait`
2024-05-28 15:38:18 +00:00
error: aborting due to 1 previous error
2024-05-28 15:38:18 +00:00
For more information about this error, try `rustc --explain E0277`.