about summary refs log tree commit diff
path: root/tests/ui/cast/cast_lit_suffix-issue-138392.rs
blob: 86dbbbbf126282fc7b8f5fa7e61d8299e86be8fd (plain)
1
2
3
4
5
6
//@ run-rustfix
#![allow(unused_parens)]
fn main() {
    let _x: u8 = (4i32); //~ ERROR: mismatched types
    let _y: u8 = (4.0f32); //~ ERROR: mismatched types
}