]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-int-to-char.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[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 }