rust/src/test/ui/integer-literal-suffix-inference.stderr

292 lines
8.0 KiB
Plaintext
Raw Normal View History

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
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
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
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);
| ^^ expected i16, found i8
help: you can cast an `i8` to `i16`, which will sign-extend the source value
|
LL | id_i16(a8.into());
| ^^^^^^^^^
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
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
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);
| ^^ expected i32, found i8
help: you can cast an `i8` to `i32`, which will sign-extend the source value
|
LL | id_i32(a8.into());
| ^^^^^^^^^
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);
| ^^^ expected i32, found i16
help: you can cast an `i16` to `i32`, which will sign-extend the source value
|
LL | id_i32(a16.into());
| ^^^^^^^^^^
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
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);
| ^^ expected i64, found i8
help: you can cast an `i8` to `i64`, which will sign-extend the source value
|
LL | id_i64(a8.into());
| ^^^^^^^^^
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);
| ^^^ expected i64, found i16
help: you can cast an `i16` to `i64`, which will sign-extend the source value
|
LL | id_i64(a16.into());
| ^^^^^^^^^^
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);
| ^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
LL | id_i64(a32.into());
| ^^^^^^^^^^
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
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
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
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);
| ^^ expected i16, found i8
help: you can cast an `i8` to `i16`, which will sign-extend the source value
|
LL | id_i16(c8.into());
| ^^^^^^^^^
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
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
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);
| ^^ expected i32, found i8
help: you can cast an `i8` to `i32`, which will sign-extend the source value
|
LL | id_i32(c8.into());
| ^^^^^^^^^
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);
| ^^^ expected i32, found i16
help: you can cast an `i16` to `i32`, which will sign-extend the source value
|
LL | id_i32(c16.into());
| ^^^^^^^^^^
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
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);
| ^^ expected i64, found i8
help: you can cast an `i8` to `i64`, which will sign-extend the source value
|
LL | id_i64(a8.into());
| ^^^^^^^^^
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);
| ^^^ expected i64, found i16
help: you can cast an `i16` to `i64`, which will sign-extend the source value
|
LL | id_i64(a16.into());
| ^^^^^^^^^^
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);
| ^^^ expected i64, found i32
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
LL | id_i64(a32.into());
| ^^^^^^^^^^
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
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
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
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);
| ^^ expected u16, found u8
help: you can cast an `u8` to `u16`, which will zero-extend the source value
|
LL | id_u16(b8.into());
| ^^^^^^^^^
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
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
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);
| ^^ expected u32, found u8
help: you can cast an `u8` to `u32`, which will zero-extend the source value
|
LL | id_u32(b8.into());
| ^^^^^^^^^
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);
| ^^^ expected u32, found u16
help: you can cast an `u16` to `u32`, which will zero-extend the source value
|
LL | id_u32(b16.into());
| ^^^^^^^^^^
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
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);
| ^^ expected u64, found u8
help: you can cast an `u8` to `u64`, which will zero-extend the source value
|
LL | id_u64(b8.into());
| ^^^^^^^^^
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);
| ^^^ expected u64, found u16
help: you can cast an `u16` to `u64`, which will zero-extend the source value
|
LL | id_u64(b16.into());
| ^^^^^^^^^^
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);
| ^^^ expected u64, found u32
help: you can cast an `u32` to `u64`, which will zero-extend the source value
|
LL | id_u64(b32.into());
| ^^^^^^^^^^
error: aborting due to 36 previous errors
For more information about this error, try `rustc --explain E0308`.