about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-12-30 09:08:18 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2019-12-30 14:05:17 +0100
commitd7e2f3aee5508538c5de14211ab5b31362e1164a (patch)
treedbeaede2fe24403f162f8c6486e6fa5672a4f32f /src/test/ui/parser
parentf35840f77cbb496dc35645331318f4b52c9a5b2a (diff)
downloadrust-d7e2f3aee5508538c5de14211ab5b31362e1164a.tar.gz
rust-d7e2f3aee5508538c5de14211ab5b31362e1164a.zip
refactor and fix this-expression-has-type note
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/recover-range-pats.stderr15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/test/ui/parser/recover-range-pats.stderr b/src/test/ui/parser/recover-range-pats.stderr
index 50a44192707..3fed64c191a 100644
--- a/src/test/ui/parser/recover-range-pats.stderr
+++ b/src/test/ui/parser/recover-range-pats.stderr
@@ -425,8 +425,9 @@ error[E0308]: mismatched types
   --> $DIR/recover-range-pats.rs:23:16
    |
 LL |     if let X.. .0 = 0 {}
-   |            -   ^^ expected integer, found floating-point number
-   |            |
+   |            -   ^^   - this expression has type `u8`
+   |            |   |
+   |            |   expected integer, found floating-point number
    |            this is of type `u8`
 
 error[E0029]: only char and numeric types are allowed in range patterns
@@ -457,8 +458,9 @@ error[E0308]: mismatched types
   --> $DIR/recover-range-pats.rs:36:16
    |
 LL |     if let X..=.0 = 0 {}
-   |            -   ^^ expected integer, found floating-point number
-   |            |
+   |            -   ^^   - this expression has type `u8`
+   |            |   |
+   |            |   expected integer, found floating-point number
    |            this is of type `u8`
 
 error[E0029]: only char and numeric types are allowed in range patterns
@@ -489,8 +491,9 @@ error[E0308]: mismatched types
   --> $DIR/recover-range-pats.rs:52:17
    |
 LL |     if let X... .0 = 0 {}
-   |            -    ^^ expected integer, found floating-point number
-   |            |
+   |            -    ^^   - this expression has type `u8`
+   |            |    |
+   |            |    expected integer, found floating-point number
    |            this is of type `u8`
 
 error[E0029]: only char and numeric types are allowed in range patterns