Closed
Description
It seems that you need to add parentheses in order to put a catch
expression in a match head, but if you do, you get a warning:
#![feature(catch_expr)]
fn main() {
match (do catch { }) { } //~WARN unnecessary parentheses around `match` head expression
match do catch { } { } //~ERROR expected expression, found reserved keyword `do`
}
Why are the parens required anyway?