]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union-sized-field.stderr
udpdate error message for unsized union field
[rust.git] / src / test / ui / union-sized-field.stderr
1 error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied
2   --> $DIR/union-sized-field.rs:14:5
3    |
4 14 |     value: T,
5    |     ^^^^^^^^ `T` does not have a constant size known at compile-time
6    |
7    = help: the trait `std::marker::Sized` is not implemented for `T`
8    = help: consider adding a `where T: std::marker::Sized` bound
9    = note: only the last field of a struct or an union may have a dynamically sized type
10
11 error: aborting due to previous error
12