Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions compiler/rustc_error_codes/src/error_codes/E0206.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The `Copy` trait was implemented on a type which is neither a struct nor an
enum.
enum nor a union.

Erroneous code example:

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

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