blob: 105c38635331f1c87b013bf99842510e50cc1c4d [file] [log] [blame]
// run-pass
// Test that having something of type ! doesn't screw up type-checking and that it coerces to the
// LUB type of the other match arms.
fn main() {
let v: Vec<u32> = Vec::new();
match 0u32 {
0 => &v,
1 => return,
_ => &v[..],
};
}