]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0072]: recursive type `U` has infinite size |
064997fb | 2 | --> $DIR/union-nonrepresentable.rs:1:1 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | union U { |
2b03887a | 5 | | ^^^^^^^ |
b7449926 | 6 | LL | a: u8, |
064997fb | 7 | LL | b: std::mem::ManuallyDrop<U>, |
2b03887a | 8 | | - recursive without indirection |
b7449926 | 9 | | |
2b03887a | 10 | help: insert some indirection (e.g., a `Box`, `Rc`, or `&`) to break the cycle |
f035d41b | 11 | | |
2b03887a FG |
12 | LL | b: std::mem::ManuallyDrop<Box<U>>, |
13 | | ++++ + | |
b7449926 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0072`. |