about summary refs log tree commit diff
path: root/src/test/ui/parser/intersection-patterns.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-14 18:02:49 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-10-14 18:02:49 +0200
commit3a9f8deb1d568baeb2cac503cf8667e3170fb2f8 (patch)
tree5e112743443a5893629b89c0f8670d25fc59deb6 /src/test/ui/parser/intersection-patterns.rs
parent72ad8f716bc2591fba72d7107a9938952214f485 (diff)
downloadrust-3a9f8deb1d568baeb2cac503cf8667e3170fb2f8.tar.gz
rust-3a9f8deb1d568baeb2cac503cf8667e3170fb2f8.zip
recover_intersection_pat: adjust wording
Diffstat (limited to 'src/test/ui/parser/intersection-patterns.rs')
-rw-r--r--src/test/ui/parser/intersection-patterns.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/ui/parser/intersection-patterns.rs b/src/test/ui/parser/intersection-patterns.rs
index 1dda21519e3..3b0dfd1ee99 100644
--- a/src/test/ui/parser/intersection-patterns.rs
+++ b/src/test/ui/parser/intersection-patterns.rs
@@ -12,8 +12,8 @@ fn main() {
     match s {
         Some(x) @ y => {}
         //~^ ERROR pattern on wrong side of `@`
-        //~| pattern on the left, should be to the right
-        //~| binding on the right, should be to the left
+        //~| pattern on the left, should be on the right
+        //~| binding on the right, should be on the left
         //~| HELP switch the order
         //~| SUGGESTION y@Some(x)
         _ => {}
@@ -21,7 +21,7 @@ fn main() {
 
     match s {
         Some(x) @ Some(y) => {}
-        //~^ ERROR left-hand side of `@` must be a binding pattern
+        //~^ ERROR left-hand side of `@` must be a binding
         //~| interpreted as a pattern, not a binding
         //~| also a pattern
         //~| NOTE bindings are `x`, `mut x`, `ref x`, and `ref mut x`
@@ -31,8 +31,8 @@ fn main() {
     match 2 {
         1 ..= 5 @ e => {}
         //~^ ERROR pattern on wrong side of `@`
-        //~| pattern on the left, should be to the right
-        //~| binding on the right, should be to the left
+        //~| pattern on the left, should be on the right
+        //~| binding on the right, should be on the left
         //~| HELP switch the order
         //~| SUGGESTION e@1 ..=5
         _ => {}