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
With
feature(if_let_guard), the following is valid Rust syntax.Syn currently fails to parse it:
Tracking issue: rust-lang/rust#51114