We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unlike if condition, match guards accept struct literals.
if
match
Syn currently fails to parse it.
#![feature(if_let_guard)] #[derive(PartialEq)] struct Foo { x: isize, } fn foo(f: Foo) { match () { () if f == Foo { x: 42 } => {} () if let Foo { x: 0.. } = Foo { x: 42 } => {} _ => {} } }
error: expected `=>` --> dev/main.rs:11:40 | 11 | () if let Foo { x: 0.. } = Foo { x: 42 } => {} | ^
Tracking issue: rust-lang/rust#51114
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Unlike
if
condition,match
guards accept struct literals.Syn currently fails to parse it.
Tracking issue: rust-lang/rust#51114
The text was updated successfully, but these errors were encountered: