summary refs log tree commit diff
path: root/src/test/ui/parser
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
parent72ad8f716bc2591fba72d7107a9938952214f485 (diff)
downloadrust-3a9f8deb1d568baeb2cac503cf8667e3170fb2f8.tar.gz
rust-3a9f8deb1d568baeb2cac503cf8667e3170fb2f8.zip
recover_intersection_pat: adjust wording
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/intersection-patterns.rs10
-rw-r--r--src/test/ui/parser/intersection-patterns.stderr10
2 files changed, 10 insertions, 10 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
         _ => {}
diff --git a/src/test/ui/parser/intersection-patterns.stderr b/src/test/ui/parser/intersection-patterns.stderr
index 03781f8fdee..39fc9b9475d 100644
--- a/src/test/ui/parser/intersection-patterns.stderr
+++ b/src/test/ui/parser/intersection-patterns.stderr
@@ -4,11 +4,11 @@ error: pattern on wrong side of `@`
 LL |         Some(x) @ y => {}
    |         -------^^^-
    |         |         |
-   |         |         binding on the right, should be to the left
-   |         pattern on the left, should be to the right
+   |         |         binding on the right, should be on the left
+   |         pattern on the left, should be on the right
    |         help: switch the order: `y@Some(x)`
 
-error: left-hand side of `@` must be a binding pattern
+error: left-hand side of `@` must be a binding
   --> $DIR/intersection-patterns.rs:23:9
    |
 LL |         Some(x) @ Some(y) => {}
@@ -25,8 +25,8 @@ error: pattern on wrong side of `@`
 LL |         1 ..= 5 @ e => {}
    |         -------^^^-
    |         |         |
-   |         |         binding on the right, should be to the left
-   |         pattern on the left, should be to the right
+   |         |         binding on the right, should be on the left
+   |         pattern on the left, should be on the right
    |         help: switch the order: `e@1 ..=5`
 
 error: aborting due to 3 previous errors