mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
11 lines
162 B
Rust
11 lines
162 B
Rust
// Test that we can explicitly cast ! to another type
|
|
|
|
//@ check-pass
|
|
|
|
#![feature(never_type)]
|
|
|
|
fn main() {
|
|
let x: ! = panic!();
|
|
let y: u32 = x as u32;
|
|
}
|