Clean up E0740 explanation
This commit is contained in:
parent
9e92106d45
commit
759de11f53
@ -1,4 +1,4 @@
|
||||
A `union` cannot have fields with destructors.
|
||||
A `union` was declared with fields with destructors.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
@ -14,3 +14,5 @@ impl Drop for A {
|
||||
fn drop(&mut self) { println!("A"); }
|
||||
}
|
||||
```
|
||||
|
||||
A `union` cannot have fields with destructors.
|
||||
|
Loading…
Reference in New Issue
Block a user