about summary refs log tree commit diff
path: root/tests/ui/impl-trait/unsized_coercion5.old.stderr
blob: 72aa92ef6b9c80f748b1f4c3509ae9333bc9aa64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the size for values of type `impl Trait + ?Sized` cannot be known at compilation time
  --> $DIR/unsized_coercion5.rs:15:32
   |
LL |         let y: Box<dyn Send> = x as Box<dyn Trait + Send>;
   |                                ^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `impl Trait + ?Sized`
   = note: required for the cast from `Box<impl Trait + ?Sized>` to `Box<dyn Trait + Send>`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.