]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cast/cast-int-to-char.rs
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[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 }