]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-int-to-char.rs
Merge commit 'd0cf3481a84e3aa68c2f185c460e282af36ebc42' into clippyup
[rust.git] / src / test / ui / cast / cast-int-to-char.rs
1 fn foo<T>(_t: T) {}
2
3 fn main() {
4     foo::<u32>('0');  //~ ERROR
5     foo::<i32>('0');  //~ ERROR
6     foo::<u64>('0');  //~ ERROR
7     foo::<i64>('0');  //~ ERROR
8     foo::<char>(0u32);  //~ ERROR
9 }