Skip to content

Commit 6e0ad59

Browse files
author
Nick Hamann
committed
---
yaml --- r: 205014 b: refs/heads/tmp c: 021b3f5 h: refs/heads/master v: v3
1 parent 7f45196 commit 6e0ad59

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3232
refs/heads/beta: f0213d8ffb128a16f94af7ee985dc61484596163
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
35-
refs/heads/tmp: a40c49c6dba55c8074a79fa26fbf2bc0d9387371
35+
refs/heads/tmp: 021b3f55d6a10e668a6fa7b51b4f8cd10a2493e5
3636
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3737
refs/tags/homu-tmp: f0ac7e04e647381e2bb87de1f3d0b108acb24d06
3838
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,17 @@ differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
218218
"##,
219219

220220
E0206: r##"
221-
You can only implement `Copy` for a struct or enum. For example, both of the
222-
following examples will fail, because neither `i32` nor `&'static mut Bar` is
223-
a struct or enum:
221+
You can only implement `Copy` for a struct or enum. Both of the following
222+
examples will fail, because neither `i32` (primitive type) nor `&'static Bar`
223+
(reference to `Bar`) is a struct or enum:
224224
225225
```
226226
type Foo = i32;
227227
impl Copy for Foo { } // error
228228
229229
#[derive(Copy, Clone)]
230230
struct Bar;
231-
impl Copy for &'static mut Bar { } // error
231+
impl Copy for &'static Bar { } // error
232232
```
233233
"##,
234234

0 commit comments

Comments
 (0)