]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/cast-never.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / never_type / cast-never.rs
1 // Test that we can explicitly cast ! to another type
2
3 // check-pass
4
5 #![feature(never_type)]
6
7 fn main() {
8     let x: ! = panic!();
9     let y: u32 = x as u32;
10 }