10 lines
174 B
Rust
10 lines
174 B
Rust
// Test that a variable of type ! can coerce to another type.
|
|
|
|
// error-pattern:explicit
|
|
|
|
#![feature(never_type)]
|
|
|
|
fn main() {
|
|
let x: ! = panic!();
|
|
let y: u32 = x;
|
|
}
|