summary refs log tree commit diff
path: root/src/test/ui/borrowck/borrowck-union-uninitialized.nll.stderr
blob: 06c884e24466728c82960b29f0f80a97ed228fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0381]: assign to part of possibly uninitialized variable: `s`
  --> $DIR/borrowck-union-uninitialized.rs:13:9
   |
LL |         s.a = 0;
   |         ^^^^^^^ use of possibly uninitialized `s`

error[E0381]: assign to part of possibly uninitialized variable: `u`
  --> $DIR/borrowck-union-uninitialized.rs:14:9
   |
LL |         u.a = 0;
   |         ^^^^^^^ use of possibly uninitialized `u`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0381`.