Skip to content

Commit

Permalink
Rollup merge of #74907 - GuillaumeGomez:cleanup-e0740, r=pickfire
Browse files Browse the repository at this point in the history
Clean up E0740 explanation

r? @Dylan-DPC
  • Loading branch information
Manishearth committed Jul 30, 2020
2 parents e823af6 + 759de11 commit 2c6c764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc_error_codes/error_codes/E0740.md
Original file line number Diff line number Diff line change
@@ -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 2c6c764

Please sign in to comment.