]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union-sized-field.stderr
Auto merge of #44060 - taleks:issue-43205, r=arielb1
[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: no field of a union may have a dynamically sized type
10
11 error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied
12   --> $DIR/union-sized-field.rs:18:5
13    |
14 18 |     value: T,
15    |     ^^^^^^^^ `T` does not have a constant size known at compile-time
16    |
17    = help: the trait `std::marker::Sized` is not implemented for `T`
18    = help: consider adding a `where T: std::marker::Sized` bound
19    = note: only the last field of a struct may have a dynamically sized type
20
21 error[E0277]: the trait bound `T: std::marker::Sized` is not satisfied
22   --> $DIR/union-sized-field.rs:23:11
23    |
24 23 |     Value(T),
25    |           ^^ `T` does not have a constant size known at compile-time
26    |
27    = help: the trait `std::marker::Sized` is not implemented for `T`
28    = help: consider adding a `where T: std::marker::Sized` bound
29    = note: no field of an enum variant may have a dynamically sized type
30
31 error: aborting due to 3 previous errors
32