Clean up E0740 explanation

This commit is contained in:
Guillaume Gomez 2020-07-29 14:06:29 +02:00
parent 9e92106d45
commit 759de11f53
1 changed files with 3 additions and 1 deletions

View File

@ -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.