]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/numeric/numeric-cast.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / numeric / numeric-cast.stderr
index 983ea08402503c039dafd9cd3584ee22564760fd..ff92a86c3a7b4a46114e2d6ff6433d4908345c8c 100644 (file)
@@ -2,7 +2,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:23:18
    |
 LL |     foo::<usize>(x_u64);
-   |                  ^^^^^ expected usize, found u64
+   |                  ^^^^^ expected `usize`, found `u64`
    |
 help: you can convert an `u64` to `usize` and panic if the converted value wouldn't fit
    |
@@ -13,7 +13,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:25:18
    |
 LL |     foo::<usize>(x_u32);
-   |                  ^^^^^ expected usize, found u32
+   |                  ^^^^^ expected `usize`, found `u32`
    |
 help: you can convert an `u32` to `usize` and panic if the converted value wouldn't fit
    |
@@ -24,29 +24,25 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:27:18
    |
 LL |     foo::<usize>(x_u16);
-   |                  ^^^^^ expected usize, found u16
-   |
-help: you can convert an `u16` to `usize` and panic if the converted value wouldn't fit
-   |
-LL |     foo::<usize>(x_u16.try_into().unwrap());
-   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^
+   |                  ^^^^^
+   |                  |
+   |                  expected `usize`, found `u16`
+   |                  help: you can convert an `u16` to `usize`: `x_u16.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:29:18
    |
 LL |     foo::<usize>(x_u8);
-   |                  ^^^^ expected usize, found u8
-   |
-help: you can convert an `u8` to `usize` and panic if the converted value wouldn't fit
-   |
-LL |     foo::<usize>(x_u8.try_into().unwrap());
-   |                  ^^^^^^^^^^^^^^^^^^^^^^^^
+   |                  ^^^^
+   |                  |
+   |                  expected `usize`, found `u8`
+   |                  help: you can convert an `u8` to `usize`: `x_u8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:31:18
    |
 LL |     foo::<usize>(x_isize);
-   |                  ^^^^^^^ expected usize, found isize
+   |                  ^^^^^^^ expected `usize`, found `isize`
    |
 help: you can convert an `isize` to `usize` and panic if the converted value wouldn't fit
    |
@@ -57,7 +53,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:33:18
    |
 LL |     foo::<usize>(x_i64);
-   |                  ^^^^^ expected usize, found i64
+   |                  ^^^^^ expected `usize`, found `i64`
    |
 help: you can convert an `i64` to `usize` and panic if the converted value wouldn't fit
    |
@@ -68,7 +64,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:35:18
    |
 LL |     foo::<usize>(x_i32);
-   |                  ^^^^^ expected usize, found i32
+   |                  ^^^^^ expected `usize`, found `i32`
    |
 help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit
    |
@@ -79,7 +75,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:37:18
    |
 LL |     foo::<usize>(x_i16);
-   |                  ^^^^^ expected usize, found i16
+   |                  ^^^^^ expected `usize`, found `i16`
    |
 help: you can convert an `i16` to `usize` and panic if the converted value wouldn't fit
    |
@@ -90,7 +86,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:39:18
    |
 LL |     foo::<usize>(x_i8);
-   |                  ^^^^ expected usize, found i8
+   |                  ^^^^ expected `usize`, found `i8`
    |
 help: you can convert an `i8` to `usize` and panic if the converted value wouldn't fit
    |
@@ -101,7 +97,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:44:18
    |
 LL |     foo::<isize>(x_usize);
-   |                  ^^^^^^^ expected isize, found usize
+   |                  ^^^^^^^ expected `isize`, found `usize`
    |
 help: you can convert an `usize` to `isize` and panic if the converted value wouldn't fit
    |
@@ -112,7 +108,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:46:18
    |
 LL |     foo::<isize>(x_u64);
-   |                  ^^^^^ expected isize, found u64
+   |                  ^^^^^ expected `isize`, found `u64`
    |
 help: you can convert an `u64` to `isize` and panic if the converted value wouldn't fit
    |
@@ -123,7 +119,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:48:18
    |
 LL |     foo::<isize>(x_u32);
-   |                  ^^^^^ expected isize, found u32
+   |                  ^^^^^ expected `isize`, found `u32`
    |
 help: you can convert an `u32` to `isize` and panic if the converted value wouldn't fit
    |
@@ -134,7 +130,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:50:18
    |
 LL |     foo::<isize>(x_u16);
-   |                  ^^^^^ expected isize, found u16
+   |                  ^^^^^ expected `isize`, found `u16`
    |
 help: you can convert an `u16` to `isize` and panic if the converted value wouldn't fit
    |
@@ -145,7 +141,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:52:18
    |
 LL |     foo::<isize>(x_u8);
-   |                  ^^^^ expected isize, found u8
+   |                  ^^^^ expected `isize`, found `u8`
    |
 help: you can convert an `u8` to `isize` and panic if the converted value wouldn't fit
    |
@@ -156,7 +152,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:55:18
    |
 LL |     foo::<isize>(x_i64);
-   |                  ^^^^^ expected isize, found i64
+   |                  ^^^^^ expected `isize`, found `i64`
    |
 help: you can convert an `i64` to `isize` and panic if the converted value wouldn't fit
    |
@@ -167,7 +163,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:57:18
    |
 LL |     foo::<isize>(x_i32);
-   |                  ^^^^^ expected isize, found i32
+   |                  ^^^^^ expected `isize`, found `i32`
    |
 help: you can convert an `i32` to `isize` and panic if the converted value wouldn't fit
    |
@@ -178,29 +174,25 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:59:18
    |
 LL |     foo::<isize>(x_i16);
-   |                  ^^^^^ expected isize, found i16
-   |
-help: you can convert an `i16` to `isize` and panic if the converted value wouldn't fit
-   |
-LL |     foo::<isize>(x_i16.try_into().unwrap());
-   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^
+   |                  ^^^^^
+   |                  |
+   |                  expected `isize`, found `i16`
+   |                  help: you can convert an `i16` to `isize`: `x_i16.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:61:18
    |
 LL |     foo::<isize>(x_i8);
-   |                  ^^^^ expected isize, found i8
-   |
-help: you can convert an `i8` to `isize` and panic if the converted value wouldn't fit
-   |
-LL |     foo::<isize>(x_i8.try_into().unwrap());
-   |                  ^^^^^^^^^^^^^^^^^^^^^^^^
+   |                  ^^^^
+   |                  |
+   |                  expected `isize`, found `i8`
+   |                  help: you can convert an `i8` to `isize`: `x_i8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:66:16
    |
 LL |     foo::<u64>(x_usize);
-   |                ^^^^^^^ expected u64, found usize
+   |                ^^^^^^^ expected `u64`, found `usize`
    |
 help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit
    |
@@ -213,7 +205,7 @@ error[E0308]: mismatched types
 LL |     foo::<u64>(x_u32);
    |                ^^^^^
    |                |
-   |                expected u64, found u32
+   |                expected `u64`, found `u32`
    |                help: you can convert an `u32` to `u64`: `x_u32.into()`
 
 error[E0308]: mismatched types
@@ -222,7 +214,7 @@ error[E0308]: mismatched types
 LL |     foo::<u64>(x_u16);
    |                ^^^^^
    |                |
-   |                expected u64, found u16
+   |                expected `u64`, found `u16`
    |                help: you can convert an `u16` to `u64`: `x_u16.into()`
 
 error[E0308]: mismatched types
@@ -231,14 +223,14 @@ error[E0308]: mismatched types
 LL |     foo::<u64>(x_u8);
    |                ^^^^
    |                |
-   |                expected u64, found u8
+   |                expected `u64`, found `u8`
    |                help: you can convert an `u8` to `u64`: `x_u8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:75:16
    |
 LL |     foo::<u64>(x_isize);
-   |                ^^^^^^^ expected u64, found isize
+   |                ^^^^^^^ expected `u64`, found `isize`
    |
 help: you can convert an `isize` to `u64` and panic if the converted value wouldn't fit
    |
@@ -249,7 +241,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:77:16
    |
 LL |     foo::<u64>(x_i64);
-   |                ^^^^^ expected u64, found i64
+   |                ^^^^^ expected `u64`, found `i64`
    |
 help: you can convert an `i64` to `u64` and panic if the converted value wouldn't fit
    |
@@ -260,7 +252,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:79:16
    |
 LL |     foo::<u64>(x_i32);
-   |                ^^^^^ expected u64, found i32
+   |                ^^^^^ expected `u64`, found `i32`
    |
 help: you can convert an `i32` to `u64` and panic if the converted value wouldn't fit
    |
@@ -271,7 +263,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:81:16
    |
 LL |     foo::<u64>(x_i16);
-   |                ^^^^^ expected u64, found i16
+   |                ^^^^^ expected `u64`, found `i16`
    |
 help: you can convert an `i16` to `u64` and panic if the converted value wouldn't fit
    |
@@ -282,7 +274,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:83:16
    |
 LL |     foo::<u64>(x_i8);
-   |                ^^^^ expected u64, found i8
+   |                ^^^^ expected `u64`, found `i8`
    |
 help: you can convert an `i8` to `u64` and panic if the converted value wouldn't fit
    |
@@ -293,7 +285,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:88:16
    |
 LL |     foo::<i64>(x_usize);
-   |                ^^^^^^^ expected i64, found usize
+   |                ^^^^^^^ expected `i64`, found `usize`
    |
 help: you can convert an `usize` to `i64` and panic if the converted value wouldn't fit
    |
@@ -304,7 +296,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:90:16
    |
 LL |     foo::<i64>(x_u64);
-   |                ^^^^^ expected i64, found u64
+   |                ^^^^^ expected `i64`, found `u64`
    |
 help: you can convert an `u64` to `i64` and panic if the converted value wouldn't fit
    |
@@ -315,7 +307,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:92:16
    |
 LL |     foo::<i64>(x_u32);
-   |                ^^^^^ expected i64, found u32
+   |                ^^^^^ expected `i64`, found `u32`
    |
 help: you can convert an `u32` to `i64` and panic if the converted value wouldn't fit
    |
@@ -326,7 +318,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:94:16
    |
 LL |     foo::<i64>(x_u16);
-   |                ^^^^^ expected i64, found u16
+   |                ^^^^^ expected `i64`, found `u16`
    |
 help: you can convert an `u16` to `i64` and panic if the converted value wouldn't fit
    |
@@ -337,7 +329,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:96:16
    |
 LL |     foo::<i64>(x_u8);
-   |                ^^^^ expected i64, found u8
+   |                ^^^^ expected `i64`, found `u8`
    |
 help: you can convert an `u8` to `i64` and panic if the converted value wouldn't fit
    |
@@ -348,7 +340,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:98:16
    |
 LL |     foo::<i64>(x_isize);
-   |                ^^^^^^^ expected i64, found isize
+   |                ^^^^^^^ expected `i64`, found `isize`
    |
 help: you can convert an `isize` to `i64` and panic if the converted value wouldn't fit
    |
@@ -361,7 +353,7 @@ error[E0308]: mismatched types
 LL |     foo::<i64>(x_i32);
    |                ^^^^^
    |                |
-   |                expected i64, found i32
+   |                expected `i64`, found `i32`
    |                help: you can convert an `i32` to `i64`: `x_i32.into()`
 
 error[E0308]: mismatched types
@@ -370,7 +362,7 @@ error[E0308]: mismatched types
 LL |     foo::<i64>(x_i16);
    |                ^^^^^
    |                |
-   |                expected i64, found i16
+   |                expected `i64`, found `i16`
    |                help: you can convert an `i16` to `i64`: `x_i16.into()`
 
 error[E0308]: mismatched types
@@ -379,14 +371,14 @@ error[E0308]: mismatched types
 LL |     foo::<i64>(x_i8);
    |                ^^^^
    |                |
-   |                expected i64, found i8
+   |                expected `i64`, found `i8`
    |                help: you can convert an `i8` to `i64`: `x_i8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:110:16
    |
 LL |     foo::<u32>(x_usize);
-   |                ^^^^^^^ expected u32, found usize
+   |                ^^^^^^^ expected `u32`, found `usize`
    |
 help: you can convert an `usize` to `u32` and panic if the converted value wouldn't fit
    |
@@ -397,7 +389,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:112:16
    |
 LL |     foo::<u32>(x_u64);
-   |                ^^^^^ expected u32, found u64
+   |                ^^^^^ expected `u32`, found `u64`
    |
 help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
    |
@@ -410,7 +402,7 @@ error[E0308]: mismatched types
 LL |     foo::<u32>(x_u16);
    |                ^^^^^
    |                |
-   |                expected u32, found u16
+   |                expected `u32`, found `u16`
    |                help: you can convert an `u16` to `u32`: `x_u16.into()`
 
 error[E0308]: mismatched types
@@ -419,14 +411,14 @@ error[E0308]: mismatched types
 LL |     foo::<u32>(x_u8);
    |                ^^^^
    |                |
-   |                expected u32, found u8
+   |                expected `u32`, found `u8`
    |                help: you can convert an `u8` to `u32`: `x_u8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:119:16
    |
 LL |     foo::<u32>(x_isize);
-   |                ^^^^^^^ expected u32, found isize
+   |                ^^^^^^^ expected `u32`, found `isize`
    |
 help: you can convert an `isize` to `u32` and panic if the converted value wouldn't fit
    |
@@ -437,7 +429,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:121:16
    |
 LL |     foo::<u32>(x_i64);
-   |                ^^^^^ expected u32, found i64
+   |                ^^^^^ expected `u32`, found `i64`
    |
 help: you can convert an `i64` to `u32` and panic if the converted value wouldn't fit
    |
@@ -448,7 +440,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:123:16
    |
 LL |     foo::<u32>(x_i32);
-   |                ^^^^^ expected u32, found i32
+   |                ^^^^^ expected `u32`, found `i32`
    |
 help: you can convert an `i32` to `u32` and panic if the converted value wouldn't fit
    |
@@ -459,7 +451,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:125:16
    |
 LL |     foo::<u32>(x_i16);
-   |                ^^^^^ expected u32, found i16
+   |                ^^^^^ expected `u32`, found `i16`
    |
 help: you can convert an `i16` to `u32` and panic if the converted value wouldn't fit
    |
@@ -470,7 +462,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:127:16
    |
 LL |     foo::<u32>(x_i8);
-   |                ^^^^ expected u32, found i8
+   |                ^^^^ expected `u32`, found `i8`
    |
 help: you can convert an `i8` to `u32` and panic if the converted value wouldn't fit
    |
@@ -481,7 +473,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:132:16
    |
 LL |     foo::<i32>(x_usize);
-   |                ^^^^^^^ expected i32, found usize
+   |                ^^^^^^^ expected `i32`, found `usize`
    |
 help: you can convert an `usize` to `i32` and panic if the converted value wouldn't fit
    |
@@ -492,7 +484,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:134:16
    |
 LL |     foo::<i32>(x_u64);
-   |                ^^^^^ expected i32, found u64
+   |                ^^^^^ expected `i32`, found `u64`
    |
 help: you can convert an `u64` to `i32` and panic if the converted value wouldn't fit
    |
@@ -503,7 +495,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:136:16
    |
 LL |     foo::<i32>(x_u32);
-   |                ^^^^^ expected i32, found u32
+   |                ^^^^^ expected `i32`, found `u32`
    |
 help: you can convert an `u32` to `i32` and panic if the converted value wouldn't fit
    |
@@ -514,7 +506,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:138:16
    |
 LL |     foo::<i32>(x_u16);
-   |                ^^^^^ expected i32, found u16
+   |                ^^^^^ expected `i32`, found `u16`
    |
 help: you can convert an `u16` to `i32` and panic if the converted value wouldn't fit
    |
@@ -525,7 +517,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:140:16
    |
 LL |     foo::<i32>(x_u8);
-   |                ^^^^ expected i32, found u8
+   |                ^^^^ expected `i32`, found `u8`
    |
 help: you can convert an `u8` to `i32` and panic if the converted value wouldn't fit
    |
@@ -536,7 +528,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:142:16
    |
 LL |     foo::<i32>(x_isize);
-   |                ^^^^^^^ expected i32, found isize
+   |                ^^^^^^^ expected `i32`, found `isize`
    |
 help: you can convert an `isize` to `i32` and panic if the converted value wouldn't fit
    |
@@ -547,7 +539,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:144:16
    |
 LL |     foo::<i32>(x_i64);
-   |                ^^^^^ expected i32, found i64
+   |                ^^^^^ expected `i32`, found `i64`
    |
 help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
    |
@@ -560,7 +552,7 @@ error[E0308]: mismatched types
 LL |     foo::<i32>(x_i16);
    |                ^^^^^
    |                |
-   |                expected i32, found i16
+   |                expected `i32`, found `i16`
    |                help: you can convert an `i16` to `i32`: `x_i16.into()`
 
 error[E0308]: mismatched types
@@ -569,14 +561,14 @@ error[E0308]: mismatched types
 LL |     foo::<i32>(x_i8);
    |                ^^^^
    |                |
-   |                expected i32, found i8
+   |                expected `i32`, found `i8`
    |                help: you can convert an `i8` to `i32`: `x_i8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:154:16
    |
 LL |     foo::<u16>(x_usize);
-   |                ^^^^^^^ expected u16, found usize
+   |                ^^^^^^^ expected `u16`, found `usize`
    |
 help: you can convert an `usize` to `u16` and panic if the converted value wouldn't fit
    |
@@ -587,7 +579,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:156:16
    |
 LL |     foo::<u16>(x_u64);
-   |                ^^^^^ expected u16, found u64
+   |                ^^^^^ expected `u16`, found `u64`
    |
 help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit
    |
@@ -598,7 +590,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:158:16
    |
 LL |     foo::<u16>(x_u32);
-   |                ^^^^^ expected u16, found u32
+   |                ^^^^^ expected `u16`, found `u32`
    |
 help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit
    |
@@ -611,14 +603,14 @@ error[E0308]: mismatched types
 LL |     foo::<u16>(x_u8);
    |                ^^^^
    |                |
-   |                expected u16, found u8
+   |                expected `u16`, found `u8`
    |                help: you can convert an `u8` to `u16`: `x_u8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:163:16
    |
 LL |     foo::<u16>(x_isize);
-   |                ^^^^^^^ expected u16, found isize
+   |                ^^^^^^^ expected `u16`, found `isize`
    |
 help: you can convert an `isize` to `u16` and panic if the converted value wouldn't fit
    |
@@ -629,7 +621,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:165:16
    |
 LL |     foo::<u16>(x_i64);
-   |                ^^^^^ expected u16, found i64
+   |                ^^^^^ expected `u16`, found `i64`
    |
 help: you can convert an `i64` to `u16` and panic if the converted value wouldn't fit
    |
@@ -640,7 +632,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:167:16
    |
 LL |     foo::<u16>(x_i32);
-   |                ^^^^^ expected u16, found i32
+   |                ^^^^^ expected `u16`, found `i32`
    |
 help: you can convert an `i32` to `u16` and panic if the converted value wouldn't fit
    |
@@ -651,7 +643,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:169:16
    |
 LL |     foo::<u16>(x_i16);
-   |                ^^^^^ expected u16, found i16
+   |                ^^^^^ expected `u16`, found `i16`
    |
 help: you can convert an `i16` to `u16` and panic if the converted value wouldn't fit
    |
@@ -662,7 +654,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:171:16
    |
 LL |     foo::<u16>(x_i8);
-   |                ^^^^ expected u16, found i8
+   |                ^^^^ expected `u16`, found `i8`
    |
 help: you can convert an `i8` to `u16` and panic if the converted value wouldn't fit
    |
@@ -673,7 +665,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:176:16
    |
 LL |     foo::<i16>(x_usize);
-   |                ^^^^^^^ expected i16, found usize
+   |                ^^^^^^^ expected `i16`, found `usize`
    |
 help: you can convert an `usize` to `i16` and panic if the converted value wouldn't fit
    |
@@ -684,7 +676,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:178:16
    |
 LL |     foo::<i16>(x_u64);
-   |                ^^^^^ expected i16, found u64
+   |                ^^^^^ expected `i16`, found `u64`
    |
 help: you can convert an `u64` to `i16` and panic if the converted value wouldn't fit
    |
@@ -695,7 +687,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:180:16
    |
 LL |     foo::<i16>(x_u32);
-   |                ^^^^^ expected i16, found u32
+   |                ^^^^^ expected `i16`, found `u32`
    |
 help: you can convert an `u32` to `i16` and panic if the converted value wouldn't fit
    |
@@ -706,7 +698,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:182:16
    |
 LL |     foo::<i16>(x_u16);
-   |                ^^^^^ expected i16, found u16
+   |                ^^^^^ expected `i16`, found `u16`
    |
 help: you can convert an `u16` to `i16` and panic if the converted value wouldn't fit
    |
@@ -717,7 +709,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:184:16
    |
 LL |     foo::<i16>(x_u8);
-   |                ^^^^ expected i16, found u8
+   |                ^^^^ expected `i16`, found `u8`
    |
 help: you can convert an `u8` to `i16` and panic if the converted value wouldn't fit
    |
@@ -728,7 +720,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:186:16
    |
 LL |     foo::<i16>(x_isize);
-   |                ^^^^^^^ expected i16, found isize
+   |                ^^^^^^^ expected `i16`, found `isize`
    |
 help: you can convert an `isize` to `i16` and panic if the converted value wouldn't fit
    |
@@ -739,7 +731,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:188:16
    |
 LL |     foo::<i16>(x_i64);
-   |                ^^^^^ expected i16, found i64
+   |                ^^^^^ expected `i16`, found `i64`
    |
 help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
    |
@@ -750,7 +742,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:190:16
    |
 LL |     foo::<i16>(x_i32);
-   |                ^^^^^ expected i16, found i32
+   |                ^^^^^ expected `i16`, found `i32`
    |
 help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
    |
@@ -763,14 +755,14 @@ error[E0308]: mismatched types
 LL |     foo::<i16>(x_i8);
    |                ^^^^
    |                |
-   |                expected i16, found i8
+   |                expected `i16`, found `i8`
    |                help: you can convert an `i8` to `i16`: `x_i8.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:198:15
    |
 LL |     foo::<u8>(x_usize);
-   |               ^^^^^^^ expected u8, found usize
+   |               ^^^^^^^ expected `u8`, found `usize`
    |
 help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit
    |
@@ -781,7 +773,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:200:15
    |
 LL |     foo::<u8>(x_u64);
-   |               ^^^^^ expected u8, found u64
+   |               ^^^^^ expected `u8`, found `u64`
    |
 help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit
    |
@@ -792,7 +784,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:202:15
    |
 LL |     foo::<u8>(x_u32);
-   |               ^^^^^ expected u8, found u32
+   |               ^^^^^ expected `u8`, found `u32`
    |
 help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit
    |
@@ -803,7 +795,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:204:15
    |
 LL |     foo::<u8>(x_u16);
-   |               ^^^^^ expected u8, found u16
+   |               ^^^^^ expected `u8`, found `u16`
    |
 help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit
    |
@@ -814,7 +806,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:207:15
    |
 LL |     foo::<u8>(x_isize);
-   |               ^^^^^^^ expected u8, found isize
+   |               ^^^^^^^ expected `u8`, found `isize`
    |
 help: you can convert an `isize` to `u8` and panic if the converted value wouldn't fit
    |
@@ -825,7 +817,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:209:15
    |
 LL |     foo::<u8>(x_i64);
-   |               ^^^^^ expected u8, found i64
+   |               ^^^^^ expected `u8`, found `i64`
    |
 help: you can convert an `i64` to `u8` and panic if the converted value wouldn't fit
    |
@@ -836,7 +828,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:211:15
    |
 LL |     foo::<u8>(x_i32);
-   |               ^^^^^ expected u8, found i32
+   |               ^^^^^ expected `u8`, found `i32`
    |
 help: you can convert an `i32` to `u8` and panic if the converted value wouldn't fit
    |
@@ -847,7 +839,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:213:15
    |
 LL |     foo::<u8>(x_i16);
-   |               ^^^^^ expected u8, found i16
+   |               ^^^^^ expected `u8`, found `i16`
    |
 help: you can convert an `i16` to `u8` and panic if the converted value wouldn't fit
    |
@@ -858,7 +850,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:215:15
    |
 LL |     foo::<u8>(x_i8);
-   |               ^^^^ expected u8, found i8
+   |               ^^^^ expected `u8`, found `i8`
    |
 help: you can convert an `i8` to `u8` and panic if the converted value wouldn't fit
    |
@@ -869,7 +861,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:220:15
    |
 LL |     foo::<i8>(x_usize);
-   |               ^^^^^^^ expected i8, found usize
+   |               ^^^^^^^ expected `i8`, found `usize`
    |
 help: you can convert an `usize` to `i8` and panic if the converted value wouldn't fit
    |
@@ -880,7 +872,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:222:15
    |
 LL |     foo::<i8>(x_u64);
-   |               ^^^^^ expected i8, found u64
+   |               ^^^^^ expected `i8`, found `u64`
    |
 help: you can convert an `u64` to `i8` and panic if the converted value wouldn't fit
    |
@@ -891,7 +883,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:224:15
    |
 LL |     foo::<i8>(x_u32);
-   |               ^^^^^ expected i8, found u32
+   |               ^^^^^ expected `i8`, found `u32`
    |
 help: you can convert an `u32` to `i8` and panic if the converted value wouldn't fit
    |
@@ -902,7 +894,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:226:15
    |
 LL |     foo::<i8>(x_u16);
-   |               ^^^^^ expected i8, found u16
+   |               ^^^^^ expected `i8`, found `u16`
    |
 help: you can convert an `u16` to `i8` and panic if the converted value wouldn't fit
    |
@@ -913,7 +905,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:228:15
    |
 LL |     foo::<i8>(x_u8);
-   |               ^^^^ expected i8, found u8
+   |               ^^^^ expected `i8`, found `u8`
    |
 help: you can convert an `u8` to `i8` and panic if the converted value wouldn't fit
    |
@@ -924,7 +916,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:230:15
    |
 LL |     foo::<i8>(x_isize);
-   |               ^^^^^^^ expected i8, found isize
+   |               ^^^^^^^ expected `i8`, found `isize`
    |
 help: you can convert an `isize` to `i8` and panic if the converted value wouldn't fit
    |
@@ -935,7 +927,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:232:15
    |
 LL |     foo::<i8>(x_i64);
-   |               ^^^^^ expected i8, found i64
+   |               ^^^^^ expected `i8`, found `i64`
    |
 help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
    |
@@ -946,7 +938,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:234:15
    |
 LL |     foo::<i8>(x_i32);
-   |               ^^^^^ expected i8, found i32
+   |               ^^^^^ expected `i8`, found `i32`
    |
 help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
    |
@@ -957,7 +949,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:236:15
    |
 LL |     foo::<i8>(x_i16);
-   |               ^^^^^ expected i8, found i16
+   |               ^^^^^ expected `i8`, found `i16`
    |
 help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
    |
@@ -968,7 +960,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:242:16
    |
 LL |     foo::<f64>(x_usize);
-   |                ^^^^^^^ expected f64, found usize
+   |                ^^^^^^^ expected `f64`, found `usize`
    |
 help: you can cast an `usize to `f64`, producing the floating point representation of the integer,
    |                                              rounded if necessary
@@ -979,7 +971,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:244:16
    |
 LL |     foo::<f64>(x_u64);
-   |                ^^^^^ expected f64, found u64
+   |                ^^^^^ expected `f64`, found `u64`
    |
 help: you can cast an `u64 to `f64`, producing the floating point representation of the integer,
    |                                              rounded if necessary
@@ -990,7 +982,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:246:16
    |
 LL |     foo::<f64>(x_u32);
-   |                ^^^^^ expected f64, found u32
+   |                ^^^^^ expected `f64`, found `u32`
    |
 help: you can convert an `u32` to `f64`, producing the floating point representation of the integer
    |
@@ -1001,7 +993,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:248:16
    |
 LL |     foo::<f64>(x_u16);
-   |                ^^^^^ expected f64, found u16
+   |                ^^^^^ expected `f64`, found `u16`
    |
 help: you can convert an `u16` to `f64`, producing the floating point representation of the integer
    |
@@ -1012,7 +1004,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:250:16
    |
 LL |     foo::<f64>(x_u8);
-   |                ^^^^ expected f64, found u8
+   |                ^^^^ expected `f64`, found `u8`
    |
 help: you can convert an `u8` to `f64`, producing the floating point representation of the integer
    |
@@ -1023,7 +1015,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:252:16
    |
 LL |     foo::<f64>(x_isize);
-   |                ^^^^^^^ expected f64, found isize
+   |                ^^^^^^^ expected `f64`, found `isize`
    |
 help: you can convert an `isize` to `f64`, producing the floating point representation of the integer, rounded if necessary
    |
@@ -1034,7 +1026,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:254:16
    |
 LL |     foo::<f64>(x_i64);
-   |                ^^^^^ expected f64, found i64
+   |                ^^^^^ expected `f64`, found `i64`
    |
 help: you can convert an `i64` to `f64`, producing the floating point representation of the integer, rounded if necessary
    |
@@ -1045,7 +1037,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:256:16
    |
 LL |     foo::<f64>(x_i32);
-   |                ^^^^^ expected f64, found i32
+   |                ^^^^^ expected `f64`, found `i32`
    |
 help: you can convert an `i32` to `f64`, producing the floating point representation of the integer
    |
@@ -1056,7 +1048,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:258:16
    |
 LL |     foo::<f64>(x_i16);
-   |                ^^^^^ expected f64, found i16
+   |                ^^^^^ expected `f64`, found `i16`
    |
 help: you can convert an `i16` to `f64`, producing the floating point representation of the integer
    |
@@ -1067,7 +1059,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:260:16
    |
 LL |     foo::<f64>(x_i8);
-   |                ^^^^ expected f64, found i8
+   |                ^^^^ expected `f64`, found `i8`
    |
 help: you can convert an `i8` to `f64`, producing the floating point representation of the integer
    |
@@ -1080,14 +1072,14 @@ error[E0308]: mismatched types
 LL |     foo::<f64>(x_f32);
    |                ^^^^^
    |                |
-   |                expected f64, found f32
+   |                expected `f64`, found `f32`
    |                help: you can convert an `f32` to `f64`: `x_f32.into()`
 
 error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:266:16
    |
 LL |     foo::<f32>(x_usize);
-   |                ^^^^^^^ expected f32, found usize
+   |                ^^^^^^^ expected `f32`, found `usize`
    |
 help: you can cast an `usize to `f32`, producing the floating point representation of the integer,
    |                                              rounded if necessary
@@ -1098,7 +1090,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:268:16
    |
 LL |     foo::<f32>(x_u64);
-   |                ^^^^^ expected f32, found u64
+   |                ^^^^^ expected `f32`, found `u64`
    |
 help: you can cast an `u64 to `f32`, producing the floating point representation of the integer,
    |                                              rounded if necessary
@@ -1109,7 +1101,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:270:16
    |
 LL |     foo::<f32>(x_u32);
-   |                ^^^^^ expected f32, found u32
+   |                ^^^^^ expected `f32`, found `u32`
    |
 help: you can cast an `u32 to `f32`, producing the floating point representation of the integer,
    |                                              rounded if necessary
@@ -1120,7 +1112,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:272:16
    |
 LL |     foo::<f32>(x_u16);
-   |                ^^^^^ expected f32, found u16
+   |                ^^^^^ expected `f32`, found `u16`
    |
 help: you can convert an `u16` to `f32`, producing the floating point representation of the integer
    |
@@ -1131,7 +1123,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:274:16
    |
 LL |     foo::<f32>(x_u8);
-   |                ^^^^ expected f32, found u8
+   |                ^^^^ expected `f32`, found `u8`
    |
 help: you can convert an `u8` to `f32`, producing the floating point representation of the integer
    |
@@ -1142,7 +1134,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:276:16
    |
 LL |     foo::<f32>(x_isize);
-   |                ^^^^^^^ expected f32, found isize
+   |                ^^^^^^^ expected `f32`, found `isize`
    |
 help: you can convert an `isize` to `f32`, producing the floating point representation of the integer, rounded if necessary
    |
@@ -1153,7 +1145,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:278:16
    |
 LL |     foo::<f32>(x_i64);
-   |                ^^^^^ expected f32, found i64
+   |                ^^^^^ expected `f32`, found `i64`
    |
 help: you can convert an `i64` to `f32`, producing the floating point representation of the integer, rounded if necessary
    |
@@ -1164,7 +1156,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:280:16
    |
 LL |     foo::<f32>(x_i32);
-   |                ^^^^^ expected f32, found i32
+   |                ^^^^^ expected `f32`, found `i32`
    |
 help: you can convert an `i32` to `f32`, producing the floating point representation of the integer, rounded if necessary
    |
@@ -1175,7 +1167,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:282:16
    |
 LL |     foo::<f32>(x_i16);
-   |                ^^^^^ expected f32, found i16
+   |                ^^^^^ expected `f32`, found `i16`
    |
 help: you can convert an `i16` to `f32`, producing the floating point representation of the integer
    |
@@ -1186,7 +1178,7 @@ error[E0308]: mismatched types
   --> $DIR/numeric-cast.rs:284:16
    |
 LL |     foo::<f32>(x_i8);
-   |                ^^^^ expected f32, found i8
+   |                ^^^^ expected `f32`, found `i8`
    |
 help: you can convert an `i8` to `f32`, producing the floating point representation of the integer
    |
@@ -1199,7 +1191,7 @@ error[E0308]: mismatched types
 LL |     foo::<u32>(x_u8 as u16);
    |                ^^^^^^^^^^^
    |                |
-   |                expected u32, found u16
+   |                expected `u32`, found `u16`
    |                help: you can convert an `u16` to `u32`: `(x_u8 as u16).into()`
 
 error[E0308]: mismatched types
@@ -1208,7 +1200,7 @@ error[E0308]: mismatched types
 LL |     foo::<i32>(-x_i8);
    |                ^^^^^
    |                |
-   |                expected i32, found i8
+   |                expected `i32`, found `i8`
    |                help: you can convert an `i8` to `i32`: `(-x_i8).into()`
 
 error: aborting due to 113 previous errors