From a40c49c6dba55c8074a79fa26fbf2bc0d9387371 Mon Sep 17 00:00:00 2001 From: Nick Hamann Date: Sun, 10 May 2015 12:55:12 -0500 Subject: [PATCH] Improve wording for E0204 and E0205 long diagnostic messages. --- src/librustc_typeck/diagnostics.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 7428e5ada5f2..887e15bd6b61 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -183,8 +183,8 @@ struct Foo<'a> { } ``` -This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (as opposed -to `&T`, which is). +This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this +differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`). "##, E0205: r##" @@ -213,8 +213,8 @@ enum Foo<'a> { } ``` -This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (as opposed -to `&T`, which is). +This fails because `&mut T` is not `Copy`, even when `T` is `Copy` (this +differs from the behavior for `&T`, which is `Copy` when `T` is `Copy`). "##, E0206: r##"