Skip to content

Commit 3dbef05

Browse files
author
Nick Hamann
committed
Improve wording for E0204 and E0205 long diagnostic messages.
1 parent cb9a686 commit 3dbef05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ struct Foo<'a> {
152152
}
153153
```
154154
155-
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (as opposed
156-
to `&T`, which is).
155+
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
156+
differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
157157
"##,
158158

159159
E0205: r##"
@@ -182,8 +182,8 @@ enum Foo<'a> {
182182
}
183183
```
184184
185-
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (as opposed
186-
to `&T`, which is).
185+
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
186+
differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
187187
"##,
188188

189189
E0206: r##"

0 commit comments

Comments
 (0)