summaryrefslogtreecommitdiffstats
path: root/tests/ui/cast/cast-int-to-char.rs
blob: 379956968bd564eecf6e835a3d4de49891676945 (plain)
1
2
3
4
5
6
7
8
9
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
}