1 #![feature(exhaustive_patterns)]
2 #![feature(never_type)]
5 #![allow(unreachable_code)]
11 fn uninhab_ref() -> &'static ! {
15 fn uninhab_union() -> Foo {
19 fn match_on_uninhab() {
21 //~^ ERROR non-exhaustive patterns: type &'static ! is non-empty
24 match uninhab_union() {
25 //~^ ERROR non-exhaustive patterns: type Foo is non-empty