]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/match/match-range-fail.stderr
Reword label as per review comment
[rust.git] / src / test / ui / match / match-range-fail.stderr
index dbc251020a93012aeefc7c51b0fa89529a66be62..532f5e23ff5e90f6b66bc4bd0961b3881b0d1cd2 100644 (file)
@@ -1,5 +1,5 @@
 error[E0029]: only char and numeric types are allowed in range patterns
-  --> $DIR/match-range-fail.rs:13:9
+  --> $DIR/match-range-fail.rs:3:9
    |
 LL |         "bar" ..= "foo" => { }
    |         ^^^^^^^^^^^^^^^ ranges require char or numeric types
@@ -8,7 +8,7 @@ LL |         "bar" ..= "foo" => { }
    = note: end type: &'static str
 
 error[E0029]: only char and numeric types are allowed in range patterns
-  --> $DIR/match-range-fail.rs:20:16
+  --> $DIR/match-range-fail.rs:10:16
    |
 LL |         10 ..= "what" => ()
    |                ^^^^^^ ranges require char or numeric types
@@ -17,10 +17,12 @@ LL |         10 ..= "what" => ()
    = note: end type: &'static str
 
 error[E0308]: mismatched types
-  --> $DIR/match-range-fail.rs:27:9
+  --> $DIR/match-range-fail.rs:17:9
    |
+LL |     match 5 {
+   |           - this match expression has type `{integer}`
 LL |         'c' ..= 100 => { }
-   |         ^^^^^^^^^^^ expected integral variable, found char
+   |         ^^^^^^^^^^^ expected integer, found char
    |
    = note: expected type `{integer}`
               found type `char`