diff options
| author | Ms2ger <ms2ger@gmail.com> | 2015-05-12 10:52:36 +0200 |
|---|---|---|
| committer | Ms2ger <ms2ger@gmail.com> | 2015-05-12 10:52:36 +0200 |
| commit | 93c21c7bcad447fb4834d9013815ef44827328c9 (patch) | |
| tree | 8a74902962010a28548600db0c4cba55a9313d0a | |
| parent | a90453a178069b890aa3877009fa99968dc85c09 (diff) | |
| download | rust-93c21c7bcad447fb4834d9013815ef44827328c9.tar.gz rust-93c21c7bcad447fb4834d9013815ef44827328c9.zip | |
Correct claims about &T's Copyness.
| -rw-r--r-- | src/librustc_typeck/diagnostics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index ea872d10144..f9565d528e8 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -186,7 +186,7 @@ struct Foo<'a> { ``` 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`). +differs from the behavior for `&T`, which is always `Copy`). "##, E0205: r##" @@ -216,7 +216,7 @@ enum Foo<'a> { ``` 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`). +differs from the behavior for `&T`, which is always `Copy`). "##, E0206: r##" |
