about summary refs log tree commit diff
path: root/src/test/ui/parser/intersection-patterns.stderr
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.stderr
parent72ad8f716bc2591fba72d7107a9938952214f485 (diff)
downloadrust-3a9f8deb1d568baeb2cac503cf8667e3170fb2f8.tar.gz
rust-3a9f8deb1d568baeb2cac503cf8667e3170fb2f8.zip
recover_intersection_pat: adjust wording
Diffstat (limited to 'src/test/ui/parser/intersection-patterns.stderr')
-rw-r--r--src/test/ui/parser/intersection-patterns.stderr10
1 files changed, 5 insertions, 5 deletions
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