about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-14 18:20:13 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-23 14:47:19 +0100
commit6a87f99620f0883f9cf5924885c6175e578da6d6 (patch)
treecd810ebcb83e3dd2b7d26f33af2d78f815e13070 /src/test/ui/error-codes
parent25b6a28a51e1539abd1df3c1ca6371d0873f8d6d (diff)
downloadrust-6a87f99620f0883f9cf5924885c6175e578da6d6.tar.gz
rust-6a87f99620f0883f9cf5924885c6175e578da6d6.zip
check_legality_of_move_bindings: generalize diagnostics & add comments
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0009.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/error-codes/E0009.stderr b/src/test/ui/error-codes/E0009.stderr
index f8acb9a09d9..446a436d647 100644
--- a/src/test/ui/error-codes/E0009.stderr
+++ b/src/test/ui/error-codes/E0009.stderr
@@ -2,7 +2,7 @@ error[E0009]: cannot bind by-move and by-ref in the same pattern
   --> $DIR/E0009.rs:5:15
    |
 LL |         Some((y, ref z)) => {},
-   |               ^  ----- both by-ref and by-move used
+   |               ^  ----- by-ref pattern here
    |               |
    |               by-move pattern here