]> git.lizzy.rs Git - rust.git/blob - src/test/ui/never_type/adjust_never.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / never_type / adjust_never.rs
1 // Test that a variable of type ! can coerce 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;
10 }