Skip to content

Commit a40c49c

Browse files
author
Nick Hamann
committed
Improve wording for E0204 and E0205 long diagnostic messages.
1 parent d730750 commit a40c49c

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
@@ -183,8 +183,8 @@ struct Foo<'a> {
183183
}
184184
```
185185
186-
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (as opposed
187-
to `&T`, which is).
186+
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
187+
differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
188188
"##,
189189

190190
E0205: r##"
@@ -213,8 +213,8 @@ enum Foo<'a> {
213213
}
214214
```
215215
216-
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (as opposed
217-
to `&T`, which is).
216+
This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this
217+
differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`).
218218
"##,
219219

220220
E0206: r##"

0 commit comments

Comments
 (0)