Rollup merge of #74907 - GuillaumeGomez:cleanup-e0740, r=pickfire
Clean up E0740 explanation r? @Dylan-DPC
This commit is contained in:
commit
2c6c764d9a
|
@ -1,4 +1,4 @@
|
||||||
A `union` cannot have fields with destructors.
|
A `union` was declared with fields with destructors.
|
||||||
|
|
||||||
Erroneous code example:
|
Erroneous code example:
|
||||||
|
|
||||||
|
@ -14,3 +14,5 @@ impl Drop for A {
|
||||||
fn drop(&mut self) { println!("A"); }
|
fn drop(&mut self) { println!("A"); }
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
A `union` cannot have fields with destructors.
|
||||||
|
|
Loading…
Reference in New Issue