blob: bb613ce16c73343aef7e1c09f9285fddcb255bc3 [file]
// Tests that `return` without a semicolon parses correctly in a match arm.
// See <https://github.com/rust-lang/rust/issues/521>
//
//@ check-pass
fn _f() {
#[rustfmt::skip]
let _x = match true {
true => { 10 },
false => { return },
};
}
fn main() {}