rust/src/test/ui/union/union-nonrepresentable.stderr

15 lines
446 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0072]: recursive type `U` has infinite size
2018-12-25 15:56:47 +00:00
--> $DIR/union-nonrepresentable.rs:3:1
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | union U {
2018-08-08 12:28:26 +00:00
| ^^^^^^^ recursive type has infinite size
LL | a: u8,
LL | b: U,
| ---- recursive without indirection
|
= help: insert indirection (e.g., a `Box`, `Rc`, or `&`) at some point to make `U` representable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0072`.