blob: bbcd9600b2257ba31c03bc579596805350bdf2ce [file] [log] [blame]
fn main() {
[(); return match 0 { n => n }]; //~ ERROR: return statement outside of function body
[(); return match 0 { 0 => 0 }]; //~ ERROR: return statement outside of function body
[(); return match () { 'a' => 0, _ => 0 }]; //~ ERROR: return statement outside of function body
}