2018-01-06 23:10:51 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:29:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_u64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found u64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:31:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_u32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found u32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:33:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_u16);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found u16
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:35:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_u8);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^ expected usize, found u8
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:37:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_isize);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^ expected usize, found isize
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:39:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_i64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found i64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:41:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_i32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found i32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:43:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_i16);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found i16
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:45:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_i8);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^ expected usize, found i8
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/numeric-cast.rs:47:18
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_f64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found f64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:49:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<usize>(x_f32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected usize, found f32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:52:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_usize);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^ expected isize, found usize
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:54:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_u64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found u64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:56:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_u32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found u32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:58:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_u16);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found u16
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:60:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_u8);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^ expected isize, found u8
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:63:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_i64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found i64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:65:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_i32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found i32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:67:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_i16);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found i16
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:69:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_i8);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^ expected isize, found i8
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:71:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_f64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found f64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:73:18
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<isize>(x_f32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected isize, found f32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:76:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_usize);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^ expected u64, found usize
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:79:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_u32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected u64, found u32
|
|
|
|
help: you can cast an `u32` to `u64`, which will zero-extend the source value
|
|
|
|
|
|
2018-01-07 14:51:33 -06:00
|
|
|
79 | foo::<u64>(x_u32.into());
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:81:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_u16);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected u64, found u16
|
|
|
|
help: you can cast an `u16` to `u64`, which will zero-extend the source value
|
|
|
|
|
|
2018-01-07 14:51:33 -06:00
|
|
|
81 | foo::<u64>(x_u16.into());
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:83:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_u8);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^ expected u64, found u8
|
|
|
|
help: you can cast an `u8` to `u64`, which will zero-extend the source value
|
|
|
|
|
|
2018-01-07 14:51:33 -06:00
|
|
|
83 | foo::<u64>(x_u8.into());
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:85:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_isize);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^^^ expected u64, found isize
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:87:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_i64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected u64, found i64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:89:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_i32);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected u64, found i32
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:91:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_i16);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected u64, found i16
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:93:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_i8);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^ expected u64, found i8
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:95:16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_f64);
|
2018-01-06 23:10:51 -06:00
|
|
|
| ^^^^^ expected u64, found f64
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-01-07 14:51:33 -06:00
|
|
|
--> $DIR/numeric-cast.rs:97:16
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | foo::<u64>(x_f32);
|
2018-01-07 14:51:33 -06:00
|
|
|
| ^^^^^ expected u64, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:100:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_usize);
|
|
|
|
| ^^^^^^^ expected i64, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:102:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_u64);
|
|
|
|
| ^^^^^ expected i64, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:104:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_u32);
|
|
|
|
| ^^^^^ expected i64, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:106:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_u16);
|
|
|
|
| ^^^^^ expected i64, found u16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:108:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_u8);
|
|
|
|
| ^^^^ expected i64, found u8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:110:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_isize);
|
|
|
|
| ^^^^^^^ expected i64, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:113:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_i32);
|
|
|
|
| ^^^^^ expected i64, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `i32` to `i64`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
113| foo::<i64>(x_i32.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:115:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_i16);
|
|
|
|
| ^^^^^ expected i64, found i16
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `i16` to `i64`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
115| foo::<i64>(x_i16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:117:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_i8);
|
|
|
|
| ^^^^ expected i64, found i8
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `i8` to `i64`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
117| foo::<i64>(x_i8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:119:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_f64);
|
|
|
|
| ^^^^^ expected i64, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:121:16
|
|
|
|
|
|
|
|
|
LL | foo::<i64>(x_f32);
|
|
|
|
| ^^^^^ expected i64, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:124:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_usize);
|
|
|
|
| ^^^^^^^ expected u32, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:126:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_u64);
|
|
|
|
| ^^^^^ expected u32, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:129:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_u16);
|
|
|
|
| ^^^^^ expected u32, found u16
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `u16` to `u32`, which will zero-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
129| foo::<u32>(x_u16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:131:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_u8);
|
|
|
|
| ^^^^ expected u32, found u8
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `u8` to `u32`, which will zero-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
131| foo::<u32>(x_u8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:133:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_isize);
|
|
|
|
| ^^^^^^^ expected u32, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:135:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_i64);
|
|
|
|
| ^^^^^ expected u32, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:137:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_i32);
|
|
|
|
| ^^^^^ expected u32, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:139:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_i16);
|
|
|
|
| ^^^^^ expected u32, found i16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:141:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_i8);
|
|
|
|
| ^^^^ expected u32, found i8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:143:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_f64);
|
|
|
|
| ^^^^^ expected u32, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:145:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_f32);
|
|
|
|
| ^^^^^ expected u32, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:148:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_usize);
|
|
|
|
| ^^^^^^^ expected i32, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:150:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_u64);
|
|
|
|
| ^^^^^ expected i32, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:152:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_u32);
|
|
|
|
| ^^^^^ expected i32, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:154:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_u16);
|
|
|
|
| ^^^^^ expected i32, found u16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:156:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_u8);
|
|
|
|
| ^^^^ expected i32, found u8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:158:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_isize);
|
|
|
|
| ^^^^^^^ expected i32, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:160:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_i64);
|
|
|
|
| ^^^^^ expected i32, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:163:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_i16);
|
|
|
|
| ^^^^^ expected i32, found i16
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `i16` to `i32`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
163| foo::<i32>(x_i16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:165:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_i8);
|
|
|
|
| ^^^^ expected i32, found i8
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `i8` to `i32`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
165| foo::<i32>(x_i8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:167:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_f64);
|
|
|
|
| ^^^^^ expected i32, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:169:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(x_f32);
|
|
|
|
| ^^^^^ expected i32, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:172:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_usize);
|
|
|
|
| ^^^^^^^ expected u16, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:174:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_u64);
|
|
|
|
| ^^^^^ expected u16, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:176:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_u32);
|
|
|
|
| ^^^^^ expected u16, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:179:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_u8);
|
|
|
|
| ^^^^ expected u16, found u8
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `u8` to `u16`, which will zero-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
179| foo::<u16>(x_u8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:181:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_isize);
|
|
|
|
| ^^^^^^^ expected u16, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:183:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_i64);
|
|
|
|
| ^^^^^ expected u16, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:185:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_i32);
|
|
|
|
| ^^^^^ expected u16, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:187:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_i16);
|
|
|
|
| ^^^^^ expected u16, found i16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:189:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_i8);
|
|
|
|
| ^^^^ expected u16, found i8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:191:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_f64);
|
|
|
|
| ^^^^^ expected u16, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:193:16
|
|
|
|
|
|
|
|
|
LL | foo::<u16>(x_f32);
|
|
|
|
| ^^^^^ expected u16, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:196:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_usize);
|
|
|
|
| ^^^^^^^ expected i16, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:198:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_u64);
|
|
|
|
| ^^^^^ expected i16, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:200:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_u32);
|
|
|
|
| ^^^^^ expected i16, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:202:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_u16);
|
|
|
|
| ^^^^^ expected i16, found u16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:204:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_u8);
|
|
|
|
| ^^^^ expected i16, found u8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:206:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_isize);
|
|
|
|
| ^^^^^^^ expected i16, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:208:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_i64);
|
|
|
|
| ^^^^^ expected i16, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:210:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_i32);
|
|
|
|
| ^^^^^ expected i16, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:213:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_i8);
|
|
|
|
| ^^^^ expected i16, found i8
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `i8` to `i16`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
213| foo::<i16>(x_i8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:215:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_f64);
|
|
|
|
| ^^^^^ expected i16, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:217:16
|
|
|
|
|
|
|
|
|
LL | foo::<i16>(x_f32);
|
|
|
|
| ^^^^^ expected i16, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:220:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_usize);
|
|
|
|
| ^^^^^^^ expected u8, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:222:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_u64);
|
|
|
|
| ^^^^^ expected u8, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:224:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_u32);
|
|
|
|
| ^^^^^ expected u8, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:226:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_u16);
|
|
|
|
| ^^^^^ expected u8, found u16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:229:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_isize);
|
|
|
|
| ^^^^^^^ expected u8, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:231:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_i64);
|
|
|
|
| ^^^^^ expected u8, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:233:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_i32);
|
|
|
|
| ^^^^^ expected u8, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:235:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_i16);
|
|
|
|
| ^^^^^ expected u8, found i16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:237:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_i8);
|
|
|
|
| ^^^^ expected u8, found i8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:239:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_f64);
|
|
|
|
| ^^^^^ expected u8, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:241:15
|
|
|
|
|
|
|
|
|
LL | foo::<u8>(x_f32);
|
|
|
|
| ^^^^^ expected u8, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:244:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_usize);
|
|
|
|
| ^^^^^^^ expected i8, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:246:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_u64);
|
|
|
|
| ^^^^^ expected i8, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:248:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_u32);
|
|
|
|
| ^^^^^ expected i8, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:250:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_u16);
|
|
|
|
| ^^^^^ expected i8, found u16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:252:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_u8);
|
|
|
|
| ^^^^ expected i8, found u8
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:254:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_isize);
|
|
|
|
| ^^^^^^^ expected i8, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:256:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_i64);
|
|
|
|
| ^^^^^ expected i8, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:258:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_i32);
|
|
|
|
| ^^^^^ expected i8, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:260:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_i16);
|
|
|
|
| ^^^^^ expected i8, found i16
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:263:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_f64);
|
|
|
|
| ^^^^^ expected i8, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:265:15
|
|
|
|
|
|
|
|
|
LL | foo::<i8>(x_f32);
|
|
|
|
| ^^^^^ expected i8, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:268:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_usize);
|
|
|
|
| ^^^^^^^ expected f64, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:270:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_u64);
|
|
|
|
| ^^^^^ expected f64, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:272:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_u32);
|
|
|
|
| ^^^^^ expected f64, found u32
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `u32` to `f64`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
272| foo::<f64>(x_u32.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:274:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_u16);
|
|
|
|
| ^^^^^ expected f64, found u16
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `u16` to `f64`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
274| foo::<f64>(x_u16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:276:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_u8);
|
|
|
|
| ^^^^ expected f64, found u8
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `u8` to `f64`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
276| foo::<f64>(x_u8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:278:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_isize);
|
|
|
|
| ^^^^^^^ expected f64, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:280:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_i64);
|
|
|
|
| ^^^^^ expected f64, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:282:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_i32);
|
|
|
|
| ^^^^^ expected f64, found i32
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `i32` to `f64`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
282| foo::<f64>(x_i32.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:284:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_i16);
|
|
|
|
| ^^^^^ expected f64, found i16
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `i16` to `f64`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
284| foo::<f64>(x_i16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:286:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_i8);
|
|
|
|
| ^^^^ expected f64, found i8
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `i8` to `f64`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
286| foo::<f64>(x_i8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:289:16
|
|
|
|
|
|
|
|
|
LL | foo::<f64>(x_f32);
|
|
|
|
| ^^^^^ expected f64, found f32
|
2018-01-06 23:10:51 -06:00
|
|
|
help: you can cast an `f32` to `f64` in a lossless way
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
289| foo::<f64>(x_f32.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:292:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_usize);
|
|
|
|
| ^^^^^^^ expected f32, found usize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:294:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_u64);
|
|
|
|
| ^^^^^ expected f32, found u64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:296:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_u32);
|
|
|
|
| ^^^^^ expected f32, found u32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:298:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_u16);
|
|
|
|
| ^^^^^ expected f32, found u16
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `u16` to `f32`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
298| foo::<f32>(x_u16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:300:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_u8);
|
|
|
|
| ^^^^ expected f32, found u8
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `u8` to `f32`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
300| foo::<f32>(x_u8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:302:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_isize);
|
|
|
|
| ^^^^^^^ expected f32, found isize
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:304:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_i64);
|
|
|
|
| ^^^^^ expected f32, found i64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:306:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_i32);
|
|
|
|
| ^^^^^ expected f32, found i32
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:308:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_i16);
|
|
|
|
| ^^^^^ expected f32, found i16
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `i16` to `f32`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
308| foo::<f32>(x_i16.into());
|
|
|
|
| ^^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:310:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_i8);
|
|
|
|
| ^^^^ expected f32, found i8
|
2018-01-09 20:41:24 -06:00
|
|
|
help: you can cast an `i8` to `f32`, producing the floating point representation of the integer
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
310| foo::<f32>(x_i8.into());
|
|
|
|
| ^^^^^^^^^^^
|
2018-01-06 23:10:51 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:312:16
|
|
|
|
|
|
|
|
|
LL | foo::<f32>(x_f64);
|
|
|
|
| ^^^^^ expected f32, found f64
|
2018-01-06 23:10:51 -06:00
|
|
|
|
2018-01-24 03:31:36 -06:00
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:316:16
|
|
|
|
|
|
|
|
|
LL | foo::<u32>(x_u8 as u16);
|
|
|
|
| ^^^^^^^^^^^ expected u32, found u16
|
2018-01-24 03:31:36 -06:00
|
|
|
help: you can cast an `u16` to `u32`, which will zero-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
316| foo::<u32>((x_u8 as u16).into());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2018-01-24 03:31:36 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2018-02-22 18:42:32 -06:00
|
|
|
--> $DIR/numeric-cast.rs:318:16
|
|
|
|
|
|
|
|
|
LL | foo::<i32>(-x_i8);
|
|
|
|
| ^^^^^ expected i32, found i8
|
2018-01-24 03:31:36 -06:00
|
|
|
help: you can cast an `i8` to `i32`, which will sign-extend the source value
|
2018-02-22 18:42:32 -06:00
|
|
|
|
|
|
|
|
318| foo::<i32>((-x_i8).into());
|
|
|
|
| ^^^^^^^^^^^^^^
|
2018-01-24 03:31:36 -06:00
|
|
|
|
|
|
|
error: aborting due to 134 previous errors
|
2018-01-06 23:10:51 -06:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|