-
-
Notifications
You must be signed in to change notification settings - Fork 355
Closed
Labels
Description
With feature(if_let_guard), the following is valid Rust syntax.
fn ret_guard() {
match 2 {
x if let true = return => { x; }
_ => {}
}
}Syn currently fails to parse it:
error: expected an expression
--> dev/main.rs:3:30
|
3 | x if let true = return => { x; }
| ^Tracking issue: rust-lang/rust#51114