Skip to content

Commit e7d6369

Browse files
authored
Rollup merge of #109211 - mili-l:mili_l/update_e0206_description, r=WaffleLapkin
E0206 - update description added `union` to description
2 parents 55d5cd5 + c4bb47a commit e7d6369

File tree

1 file changed

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

1 file changed

+4
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
The `Copy` trait was implemented on a type which is neither a struct nor an
2-
enum.
1+
The `Copy` trait was implemented on a type which is neither a struct, an
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, an enum, or a union.
1414
The previous example will fail because `&'static mut Bar`
15-
is not a struct or enum.
15+
is not a struct, an enum, or a union.

0 commit comments

Comments
 (0)