Skip to content

Commit dc39bf8

Browse files
committed
E0206 - added union to description
1 parent 18e305d commit dc39bf8

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+2
-2
lines changed

compiler/rustc_error_codes/src/error_codes/E0206.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The `Copy` trait was implemented on a type which is neither a struct nor an
2-
enum.
2+
enum nor a union.
33

44
Erroneous code example:
55

@@ -10,6 +10,6 @@ struct Bar;
1010
impl Copy for &'static mut Bar { } // error!
1111
```
1212

13-
You can only implement `Copy` for a struct or an enum.
13+
You can only implement `Copy` for a struct, a union, or an enum.
1414
The previous example will fail because `&'static mut Bar`
1515
is not a struct or enum.

0 commit comments

Comments
 (0)