Skip to content

Commit 4786e4c

Browse files
author
Nick Hamann
committed
---
yaml --- r: 206716 b: refs/heads/beta c: 021b3f5 h: refs/heads/master v: v3
1 parent 3711eaf commit 4786e4c

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
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3030
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3131
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
32-
refs/heads/beta: a40c49c6dba55c8074a79fa26fbf2bc0d9387371
32+
refs/heads/beta: 021b3f55d6a10e668a6fa7b51b4f8cd10a2493e5
3333
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3434
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3535
refs/heads/tmp: 579e31929feff51dcaf8d444648eff8de735f91a

branches/beta/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)