]> git.lizzy.rs Git - rust.git/blob - tests/ui/cast/cast-int-to-char.rs
Rollup merge of #106783 - WaffleLapkin:break-my-ident, r=wesleywiser
[rust.git] / tests / 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 }