summaryrefslogtreecommitdiffstats
path: root/tests/ui/never_type/adjust_never.rs
blob: 0d7d2c0ed3fa9402eaf9c808572292fba19e3cb7 (plain)
1
2
3
4
5
6
7
8
9
10
// Test that a variable of type ! can coerce to another type.

// check-pass

#![feature(never_type)]

fn main() {
    let x: ! = panic!();
    let y: u32 = x;
}