Rollup merge of #74907 - GuillaumeGomez:cleanup-e0740, r=pickfire

Clean up E0740 explanation

r? @Dylan-DPC
This commit is contained in:
Manish Goregaokar 2020-07-30 13:04:38 -07:00 committed by GitHub
commit 2c6c764d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.