rust/tests/ui/cast/cast-int-to-char.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
197 B
Rust
Raw Normal View History

2021-11-28 21:46:53 +00:00
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
}