Skip to content

Commit fde3beb

Browse files
author
Nick Hamann
committed
---
yaml --- r: 208318 b: refs/heads/snap-stage3 c: 021b3f5 h: refs/heads/master v: v3
1 parent e71587c commit fde3beb

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 38a97becdf3e6a6157f6f7ec2d98ade8d8edc193
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a40c49c6dba55c8074a79fa26fbf2bc0d9387371
4+
refs/heads/snap-stage3: 021b3f55d6a10e668a6fa7b51b4f8cd10a2493e5
55
refs/heads/try: 7b4ef47b7805a402d756fb8157101f64880a522f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)