rust/tests/ui/cast/cast-int-to-char.rs
2023-01-11 09:32:08 +00:00

10 lines
197 B
Rust

fn foo<T>(_t: T) {}
fn main() {
foo::<u32>('0'); //~ ERROR
foo::<i32>('0'); //~ ERROR
foo::<u64>('0'); //~ ERROR
foo::<i64>('0'); //~ ERROR
foo::<char>(0u32); //~ ERROR
}