12 lines
374 B
Plaintext
12 lines
374 B
Plaintext
|
error: not automatically applying `DerefMut` on union field
|
||
|
--> $DIR/union-deref.rs:12:14
|
||
|
|
|
||
|
LL | unsafe { u.f.0 = Vec::new() };
|
||
|
| ^^^
|
||
|
|
|
||
|
= help: writing to this field calls the destructor for the old value
|
||
|
= help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|