Skip to content

Commit 05dc132

Browse files
committed
E0206 - code review changes
1 parent 1f12c3e commit 05dc132

File tree

1 file changed

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

1 file changed

+4
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
The `Copy` trait was implemented on a type which is neither a struct nor an enum nor a union.
1+
The `Copy` trait was implemented on a type which is neither a struct, an
2+
enum, nor a union.
23

34
Erroneous code example:
45

@@ -9,6 +10,6 @@ struct Bar;
910
impl Copy for &'static mut Bar { } // error!
1011
```
1112

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

0 commit comments

Comments
 (0)