rust/src/test/run-fail/adjust_never.rs
2018-12-25 21:08:33 -07:00

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;
}