Skip to content

Commit 759de11

Browse files
committedJul 29, 2020
Clean up E0740 explanation
1 parent 9e92106 commit 759de11

File tree

1 file changed

+3
-1
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-1
lines changed
 

‎src/librustc_error_codes/error_codes/E0740.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
A `union` cannot have fields with destructors.
1+
A `union` was declared with fields with destructors.
22

33
Erroneous code example:
44

@@ -14,3 +14,5 @@ impl Drop for A {
1414
fn drop(&mut self) { println!("A"); }
1515
}
1616
```
17+
18+
A `union` cannot have fields with destructors.

0 commit comments

Comments
 (0)
Please sign in to comment.