summaryrefslogtreecommitdiffstats
path: root/tests/ui/uninhabited/uninhabited-enum-cast.rs
blob: 5a75c94c42f0bdd7244825d61d477012836e883a (plain)
1
2
3
4
5
6
7
8
9
// check-pass

enum E {}

fn f(e: E) {
    println!("{}", (e as isize).to_string());
}

fn main() {}