2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:32:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(a16);
|
|
|
|
| ^^^ expected i8, found i16
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(a16.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:35:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(a32);
|
|
|
|
| ^^^ expected i8, found i32
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(a32.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:38:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(a64);
|
|
|
|
| ^^^ expected i8, found i64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(a64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:42:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(a8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected i16, found i8
|
|
|
|
| help: you can convert an `i8` to `i16`: `a8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:46:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(a32);
|
|
|
|
| ^^^ expected i16, found i32
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(a32.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:49:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(a64);
|
|
|
|
| ^^^ expected i16, found i64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(a64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:53:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(a8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected i32, found i8
|
|
|
|
| help: you can convert an `i8` to `i32`: `a8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:56:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(a16);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected i32, found i16
|
|
|
|
| help: you can convert an `i16` to `i32`: `a16.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:60:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(a64);
|
|
|
|
| ^^^ expected i32, found i64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(a64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:64:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i64(a8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected i64, found i8
|
|
|
|
| help: you can convert an `i8` to `i64`: `a8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:67:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i64(a16);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected i64, found i16
|
|
|
|
| help: you can convert an `i16` to `i64`: `a16.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:70:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i64(a32);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected i64, found i32
|
|
|
|
| help: you can convert an `i32` to `i64`: `a32.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:76:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(c16);
|
|
|
|
| ^^^ expected i8, found i16
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i16` to `i8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(c16.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:79:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(c32);
|
|
|
|
| ^^^ expected i8, found i32
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i32` to `i8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(c32.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:82:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(c64);
|
|
|
|
| ^^^ expected i8, found i64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i64` to `i8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i8(c64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:86:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(c8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected i16, found i8
|
|
|
|
| help: you can convert an `i8` to `i16`: `c8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:90:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(c32);
|
|
|
|
| ^^^ expected i16, found i32
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i32` to `i16` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(c32.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:93:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(c64);
|
|
|
|
| ^^^ expected i16, found i64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i64` to `i16` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i16(c64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:97:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(c8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected i32, found i8
|
|
|
|
| help: you can convert an `i8` to `i32`: `c8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:100:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(c16);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected i32, found i16
|
|
|
|
| help: you can convert an `i16` to `i32`: `c16.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:104:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(c64);
|
|
|
|
| ^^^ expected i32, found i64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `i64` to `i32` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_i32(c64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:108:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i64(a8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected i64, found i8
|
|
|
|
| help: you can convert an `i8` to `i64`: `a8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:111:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i64(a16);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected i64, found i16
|
|
|
|
| help: you can convert an `i16` to `i64`: `a16.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:114:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_i64(a32);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected i64, found i32
|
|
|
|
| help: you can convert an `i32` to `i64`: `a32.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:120:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u8(b16);
|
|
|
|
| ^^^ expected u8, found u16
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `u16` to `u8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_u8(b16.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:123:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u8(b32);
|
|
|
|
| ^^^ expected u8, found u32
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `u32` to `u8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_u8(b32.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:126:11
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u8(b64);
|
|
|
|
| ^^^ expected u8, found u64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `u64` to `u8` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_u8(b64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:130:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u16(b8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected u16, found u8
|
|
|
|
| help: you can convert an `u8` to `u16`: `b8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:134:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u16(b32);
|
|
|
|
| ^^^ expected u16, found u32
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `u32` to `u16` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_u16(b32.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:137:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u16(b64);
|
|
|
|
| ^^^ expected u16, found u64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `u64` to `u16` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_u16(b64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:141:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u32(b8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected u32, found u8
|
|
|
|
| help: you can convert an `u8` to `u32`: `b8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:144:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u32(b16);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected u32, found u16
|
|
|
|
| help: you can convert an `u16` to `u32`: `b16.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:148:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u32(b64);
|
|
|
|
| ^^^ expected u32, found u64
|
2019-05-03 12:41:26 -05:00
|
|
|
help: you can convert an `u64` to `u32` and panic if the converted value wouldn't fit
|
2019-04-21 17:44:23 -05:00
|
|
|
|
|
|
|
|
LL | id_u32(b64.try_into().unwrap());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:152:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u64(b8);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^
|
|
|
|
| |
|
|
|
|
| expected u64, found u8
|
|
|
|
| help: you can convert an `u8` to `u64`: `b8.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:155:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u64(b16);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected u64, found u16
|
|
|
|
| help: you can convert an `u16` to `u64`: `b16.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/integer-literal-suffix-inference.rs:158:12
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | id_u64(b32);
|
2019-04-21 17:44:23 -05:00
|
|
|
| ^^^
|
|
|
|
| |
|
|
|
|
| expected u64, found u32
|
|
|
|
| help: you can convert an `u32` to `u64`: `b32.into()`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to 36 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|