Skip to content

Commit

Permalink
Clean up E0740 explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 29, 2020
1 parent 9e92106 commit 759de11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_error_codes/error_codes/E0740.md
@@ -1,4 +1,4 @@
A `union` cannot have fields with destructors.
A `union` was declared with fields with destructors.

Erroneous code example:

Expand All @@ -14,3 +14,5 @@ impl Drop for A {
fn drop(&mut self) { println!("A"); }
}
```

A `union` cannot have fields with destructors.

0 comments on commit 759de11

Please sign in to comment.