error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:7:16 | LL | foo::(42_usize); | ^^^^^^^^ expected `u16`, found `usize` | help: change the type of the numeric literal from `usize` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:10:16 | LL | foo::(42_u64); | ^^^^^^ expected `u16`, found `u64` | help: change the type of the numeric literal from `u64` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:13:16 | LL | foo::(42_u32); | ^^^^^^ expected `u16`, found `u32` | help: change the type of the numeric literal from `u32` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:17:16 | LL | foo::(42_u8); | ^^^^^ expected `u16`, found `u8` | help: change the type of the numeric literal from `u8` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:20:16 | LL | foo::(42_isize); | ^^^^^^^^ expected `u16`, found `isize` | help: change the type of the numeric literal from `isize` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:23:16 | LL | foo::(42_i64); | ^^^^^^ expected `u16`, found `i64` | help: change the type of the numeric literal from `i64` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:26:16 | LL | foo::(42_i32); | ^^^^^^ expected `u16`, found `i32` | help: change the type of the numeric literal from `i32` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:29:16 | LL | foo::(42_i16); | ^^^^^^ expected `u16`, found `i16` | help: change the type of the numeric literal from `i16` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:32:16 | LL | foo::(42_i8); | ^^^^^ expected `u16`, found `i8` | help: change the type of the numeric literal from `i8` to `u16` | LL | foo::(42_u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:35:16 | LL | foo::(42.0_f64); | ^^^^^^^^ expected `u16`, found `f64` | help: change the type of the numeric literal from `f64` to `u16` | LL | foo::(42u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:38:16 | LL | foo::(42.0_f32); | ^^^^^^^^ expected `u16`, found `f32` | help: change the type of the numeric literal from `f32` to `u16` | LL | foo::(42u16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:42:16 | LL | foo::(42_usize); | ^^^^^^^^ expected `i16`, found `usize` | help: change the type of the numeric literal from `usize` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:45:16 | LL | foo::(42_u64); | ^^^^^^ expected `i16`, found `u64` | help: change the type of the numeric literal from `u64` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:48:16 | LL | foo::(42_u32); | ^^^^^^ expected `i16`, found `u32` | help: change the type of the numeric literal from `u32` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:51:16 | LL | foo::(42_u16); | ^^^^^^ expected `i16`, found `u16` | help: change the type of the numeric literal from `u16` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:54:16 | LL | foo::(42_u8); | ^^^^^ expected `i16`, found `u8` | help: change the type of the numeric literal from `u8` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:57:16 | LL | foo::(42_isize); | ^^^^^^^^ expected `i16`, found `isize` | help: change the type of the numeric literal from `isize` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:60:16 | LL | foo::(42_i64); | ^^^^^^ expected `i16`, found `i64` | help: change the type of the numeric literal from `i64` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:63:16 | LL | foo::(42_i32); | ^^^^^^ expected `i16`, found `i32` | help: change the type of the numeric literal from `i32` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:67:16 | LL | foo::(42_i8); | ^^^^^ expected `i16`, found `i8` | help: change the type of the numeric literal from `i8` to `i16` | LL | foo::(42_i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:70:16 | LL | foo::(42.0_f64); | ^^^^^^^^ expected `i16`, found `f64` | help: change the type of the numeric literal from `f64` to `i16` | LL | foo::(42i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:73:16 | LL | foo::(42.0_f32); | ^^^^^^^^ expected `i16`, found `f32` | help: change the type of the numeric literal from `f32` to `i16` | LL | foo::(42i16); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:77:15 | LL | foo::(42_usize); | ^^^^^^^^ expected `u8`, found `usize` | help: change the type of the numeric literal from `usize` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:80:15 | LL | foo::(42_u64); | ^^^^^^ expected `u8`, found `u64` | help: change the type of the numeric literal from `u64` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:83:15 | LL | foo::(42_u32); | ^^^^^^ expected `u8`, found `u32` | help: change the type of the numeric literal from `u32` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:86:15 | LL | foo::(42_u16); | ^^^^^^ expected `u8`, found `u16` | help: change the type of the numeric literal from `u16` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:90:15 | LL | foo::(42_isize); | ^^^^^^^^ expected `u8`, found `isize` | help: change the type of the numeric literal from `isize` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:93:15 | LL | foo::(42_i64); | ^^^^^^ expected `u8`, found `i64` | help: change the type of the numeric literal from `i64` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:96:15 | LL | foo::(42_i32); | ^^^^^^ expected `u8`, found `i32` | help: change the type of the numeric literal from `i32` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:99:15 | LL | foo::(42_i16); | ^^^^^^ expected `u8`, found `i16` | help: change the type of the numeric literal from `i16` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:102:15 | LL | foo::(42_i8); | ^^^^^ expected `u8`, found `i8` | help: change the type of the numeric literal from `i8` to `u8` | LL | foo::(42_u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:105:15 | LL | foo::(42.0_f64); | ^^^^^^^^ expected `u8`, found `f64` | help: change the type of the numeric literal from `f64` to `u8` | LL | foo::(42u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:108:15 | LL | foo::(42.0_f32); | ^^^^^^^^ expected `u8`, found `f32` | help: change the type of the numeric literal from `f32` to `u8` | LL | foo::(42u8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:112:15 | LL | foo::(42_usize); | ^^^^^^^^ expected `i8`, found `usize` | help: change the type of the numeric literal from `usize` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:115:15 | LL | foo::(42_u64); | ^^^^^^ expected `i8`, found `u64` | help: change the type of the numeric literal from `u64` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:118:15 | LL | foo::(42_u32); | ^^^^^^ expected `i8`, found `u32` | help: change the type of the numeric literal from `u32` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:121:15 | LL | foo::(42_u16); | ^^^^^^ expected `i8`, found `u16` | help: change the type of the numeric literal from `u16` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:124:15 | LL | foo::(42_u8); | ^^^^^ expected `i8`, found `u8` | help: change the type of the numeric literal from `u8` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:127:15 | LL | foo::(42_isize); | ^^^^^^^^ expected `i8`, found `isize` | help: change the type of the numeric literal from `isize` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:130:15 | LL | foo::(42_i64); | ^^^^^^ expected `i8`, found `i64` | help: change the type of the numeric literal from `i64` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:133:15 | LL | foo::(42_i32); | ^^^^^^ expected `i8`, found `i32` | help: change the type of the numeric literal from `i32` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:136:15 | LL | foo::(42_i16); | ^^^^^^ expected `i8`, found `i16` | help: change the type of the numeric literal from `i16` to `i8` | LL | foo::(42_i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:140:15 | LL | foo::(42.0_f64); | ^^^^^^^^ expected `i8`, found `f64` | help: change the type of the numeric literal from `f64` to `i8` | LL | foo::(42i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:143:15 | LL | foo::(42.0_f32); | ^^^^^^^^ expected `i8`, found `f32` | help: change the type of the numeric literal from `f32` to `i8` | LL | foo::(42i8); | ~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:147:16 | LL | foo::(42_usize); | ^^^^^^^^ expected `f64`, found `usize` | help: change the type of the numeric literal from `usize` to `f64` | LL | foo::(42_f64); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:150:16 | LL | foo::(42_u64); | ^^^^^^ expected `f64`, found `u64` | help: change the type of the numeric literal from `u64` to `f64` | LL | foo::(42_f64); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:153:16 | LL | foo::(42_u32); | ^^^^^^ expected `f64`, found `u32` | help: you can convert a `u32` to an `f64`, producing the floating point representation of the integer | LL | foo::(42_u32.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:156:16 | LL | foo::(42_u16); | ^^^^^^ expected `f64`, found `u16` | help: you can convert a `u16` to an `f64`, producing the floating point representation of the integer | LL | foo::(42_u16.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:159:16 | LL | foo::(42_u8); | ^^^^^ expected `f64`, found `u8` | help: you can convert a `u8` to an `f64`, producing the floating point representation of the integer | LL | foo::(42_u8.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:162:16 | LL | foo::(42_isize); | ^^^^^^^^ expected `f64`, found `isize` | help: change the type of the numeric literal from `isize` to `f64` | LL | foo::(42_f64); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:165:16 | LL | foo::(42_i64); | ^^^^^^ expected `f64`, found `i64` | help: change the type of the numeric literal from `i64` to `f64` | LL | foo::(42_f64); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:168:16 | LL | foo::(42_i32); | ^^^^^^ expected `f64`, found `i32` | help: you can convert an `i32` to an `f64`, producing the floating point representation of the integer | LL | foo::(42_i32.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:171:16 | LL | foo::(42_i16); | ^^^^^^ expected `f64`, found `i16` | help: you can convert an `i16` to an `f64`, producing the floating point representation of the integer | LL | foo::(42_i16.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:174:16 | LL | foo::(42_i8); | ^^^^^ expected `f64`, found `i8` | help: you can convert an `i8` to an `f64`, producing the floating point representation of the integer | LL | foo::(42_i8.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:178:16 | LL | foo::(42.0_f32); | ^^^^^^^^ expected `f64`, found `f32` | help: change the type of the numeric literal from `f32` to `f64` | LL | foo::(42.0_f64); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:182:16 | LL | foo::(42_usize); | ^^^^^^^^ expected `f32`, found `usize` | help: change the type of the numeric literal from `usize` to `f32` | LL | foo::(42_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:185:16 | LL | foo::(42_u64); | ^^^^^^ expected `f32`, found `u64` | help: change the type of the numeric literal from `u64` to `f32` | LL | foo::(42_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:188:16 | LL | foo::(42_u32); | ^^^^^^ expected `f32`, found `u32` | help: change the type of the numeric literal from `u32` to `f32` | LL | foo::(42_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:191:16 | LL | foo::(42_u16); | ^^^^^^ expected `f32`, found `u16` | help: you can convert a `u16` to an `f32`, producing the floating point representation of the integer | LL | foo::(42_u16.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:194:16 | LL | foo::(42_u8); | ^^^^^ expected `f32`, found `u8` | help: you can convert a `u8` to an `f32`, producing the floating point representation of the integer | LL | foo::(42_u8.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:197:16 | LL | foo::(42_isize); | ^^^^^^^^ expected `f32`, found `isize` | help: change the type of the numeric literal from `isize` to `f32` | LL | foo::(42_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:200:16 | LL | foo::(42_i64); | ^^^^^^ expected `f32`, found `i64` | help: change the type of the numeric literal from `i64` to `f32` | LL | foo::(42_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:203:16 | LL | foo::(42_i32); | ^^^^^^ expected `f32`, found `i32` | help: change the type of the numeric literal from `i32` to `f32` | LL | foo::(42_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:206:16 | LL | foo::(42_i16); | ^^^^^^ expected `f32`, found `i16` | help: you can convert an `i16` to an `f32`, producing the floating point representation of the integer | LL | foo::(42_i16.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:209:16 | LL | foo::(42_i8); | ^^^^^ expected `f32`, found `i8` | help: you can convert an `i8` to an `f32`, producing the floating point representation of the integer | LL | foo::(42_i8.into()); | +++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:212:16 | LL | foo::(42.0_f64); | ^^^^^^^^ expected `f32`, found `f64` | help: change the type of the numeric literal from `f64` to `f32` | LL | foo::(42.0_f32); | ~~~ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:217:16 | LL | foo::(42_u8 as u16); | ^^^^^^^^^^^^ expected `u32`, found `u16` | help: you can convert a `u16` to a `u32` | LL | foo::((42_u8 as u16).into()); | + ++++++++ error[E0308]: mismatched types --> $DIR/numeric-suffix.rs:220:16 | LL | foo::(-42_i8); | ^^^^^^ expected `i32`, found `i8` | help: you can convert an `i8` to an `i32` | LL | foo::((-42_i8).into()); | + ++++++++ error: aborting due to 68 previous errors For more information about this error, try `rustc --explain E0308`.