summary refs log tree commit diff
path: root/src/test/ui/union/union-nonrepresentable.stderr
blob: 17d78ea4c2b04e4570efd847c6c0f6c05fecc84b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0072]: recursive type `U` has infinite size
  --> $DIR/union-nonrepresentable.rs:13:1
   |
LL | union U { //~ ERROR recursive type `U` has infinite size
   | ^^^^^^^ 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`.