mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
E0206 - code review changes
This commit is contained in:
parent
1f12c3e397
commit
05dc132adb
@ -1,4 +1,5 @@
|
||||
The `Copy` trait was implemented on a type which is neither a struct nor an enum nor a union.
|
||||
The `Copy` trait was implemented on a type which is neither a struct, an
|
||||
enum, nor a union.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
@ -9,6 +10,6 @@ struct Bar;
|
||||
impl Copy for &'static mut Bar { } // error!
|
||||
```
|
||||
|
||||
You can only implement `Copy` for a struct, a union, or an enum.
|
||||
You can only implement `Copy` for a struct, an enum, or a union.
|
||||
The previous example will fail because `&'static mut Bar`
|
||||
is not a struct or enum.
|
||||
is not a struct, an enum, or a union.
|
||||
|
Loading…
Reference in New Issue
Block a user