rust/tests/ui/uninhabited/uninhabited-enum-cast.rs
2023-01-11 09:32:08 +00:00

10 lines
101 B
Rust

// check-pass
enum E {}
fn f(e: E) {
println!("{}", (e as isize).to_string());
}
fn main() {}