| error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied |
| --> $DIR/union-sized-field.rs:14:5 |
| | |
| 14 | value: T, //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied |
| | ^^^^^^^^ `T` does not have a constant size known at compile-time |
| | |
| = help: the trait `std::marker::Sized` is not implemented for `T` |
| = help: consider adding a `where T: std::marker::Sized` bound |
| = note: no field of a union may have a dynamically sized type |
| |
| error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied |
| --> $DIR/union-sized-field.rs:18:5 |
| | |
| 18 | value: T, //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied |
| | ^^^^^^^^ `T` does not have a constant size known at compile-time |
| | |
| = help: the trait `std::marker::Sized` is not implemented for `T` |
| = help: consider adding a `where T: std::marker::Sized` bound |
| = note: only the last field of a struct may have a dynamically sized type |
| |
| error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied |
| --> $DIR/union-sized-field.rs:23:11 |
| | |
| 23 | Value(T), //~ ERROR the trait bound `T: std::marker::Sized` is not satisfied |
| | ^^ `T` does not have a constant size known at compile-time |
| | |
| = help: the trait `std::marker::Sized` is not implemented for `T` |
| = help: consider adding a `where T: std::marker::Sized` bound |
| = note: no field of an enum variant may have a dynamically sized type |
| |
| error: aborting due to 3 previous errors |
| |