]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/discrim/discrim-ill-typed.stderr
Update tests to remove old numeric constants
[rust.git] / src / test / ui / discrim / discrim-ill-typed.stderr
index d9675d65a2a84eef1bda3764c6d3b3493f168c88..9a695a8987a37c40b61649c5ac94bc0891923374 100644 (file)
@@ -1,8 +1,8 @@
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:17:16
+  --> $DIR/discrim-ill-typed.rs:15:16
    |
 LL |         OhNo = 0_u8,
-   |                ^^^^ expected i8, found u8
+   |                ^^^^ expected `i8`, found `u8`
    |
 help: change the type of the numeric literal from `u8` to `i8`
    |
@@ -10,10 +10,10 @@ LL |         OhNo = 0_i8,
    |                ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:30:16
+  --> $DIR/discrim-ill-typed.rs:28:16
    |
 LL |         OhNo = 0_i8,
-   |                ^^^^ expected u8, found i8
+   |                ^^^^ expected `u8`, found `i8`
    |
 help: change the type of the numeric literal from `i8` to `u8`
    |
@@ -21,10 +21,10 @@ LL |         OhNo = 0_u8,
    |                ^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:43:16
+  --> $DIR/discrim-ill-typed.rs:41:16
    |
 LL |         OhNo = 0_u16,
-   |                ^^^^^ expected i16, found u16
+   |                ^^^^^ expected `i16`, found `u16`
    |
 help: change the type of the numeric literal from `u16` to `i16`
    |
@@ -32,10 +32,10 @@ LL |         OhNo = 0_i16,
    |                ^^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:56:16
+  --> $DIR/discrim-ill-typed.rs:54:16
    |
 LL |         OhNo = 0_i16,
-   |                ^^^^^ expected u16, found i16
+   |                ^^^^^ expected `u16`, found `i16`
    |
 help: change the type of the numeric literal from `i16` to `u16`
    |
@@ -43,10 +43,10 @@ LL |         OhNo = 0_u16,
    |                ^^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:69:16
+  --> $DIR/discrim-ill-typed.rs:67:16
    |
 LL |         OhNo = 0_u32,
-   |                ^^^^^ expected i32, found u32
+   |                ^^^^^ expected `i32`, found `u32`
    |
 help: change the type of the numeric literal from `u32` to `i32`
    |
@@ -54,10 +54,10 @@ LL |         OhNo = 0_i32,
    |                ^^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:82:16
+  --> $DIR/discrim-ill-typed.rs:80:16
    |
 LL |         OhNo = 0_i32,
-   |                ^^^^^ expected u32, found i32
+   |                ^^^^^ expected `u32`, found `i32`
    |
 help: change the type of the numeric literal from `i32` to `u32`
    |
@@ -65,10 +65,10 @@ LL |         OhNo = 0_u32,
    |                ^^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:95:16
+  --> $DIR/discrim-ill-typed.rs:93:16
    |
 LL |         OhNo = 0_u64,
-   |                ^^^^^ expected i64, found u64
+   |                ^^^^^ expected `i64`, found `u64`
    |
 help: change the type of the numeric literal from `u64` to `i64`
    |
@@ -76,10 +76,10 @@ LL |         OhNo = 0_i64,
    |                ^^^^^
 
 error[E0308]: mismatched types
-  --> $DIR/discrim-ill-typed.rs:108:16
+  --> $DIR/discrim-ill-typed.rs:106:16
    |
 LL |         OhNo = 0_i64,
-   |                ^^^^^ expected u64, found i64
+   |                ^^^^^ expected `u64`, found `i64`
    |
 help: change the type of the numeric literal from `i64` to `u64`
    |