blob: f32e2973813c63d59edf72a0c706b3e55c13b247 [file] [log] [blame]
// 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[..],
};
}