Skip to content

Commit 93c21c7

Browse files
committed
Correct claims about &T's Copyness.
1 parent a90453a commit 93c21c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_typeck/diagnostics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ struct Foo<'a> {
186186
```
187187
188188
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
189-
differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
189+
differs from the behavior for `&T`, which is always `Copy`).
190190
"##,
191191

192192
E0205: r##"
@@ -216,7 +216,7 @@ enum Foo<'a> {
216216
```
217217
218218
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
219-
differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
219+
differs from the behavior for `&T`, which is always `Copy`).
220220
"##,
221221

222222
E0206: r##"

0 commit comments

Comments
 (0)