Skip to content
New issue

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

Parse optional vert at the beginning of a match branch #380

Closed
dtolnay opened this issue Mar 28, 2018 · 1 comment
Closed

Parse optional vert at the beginning of a match branch #380

dtolnay opened this issue Mar 28, 2018 · 1 comment

Comments

@dtolnay
Copy link
Owner

dtolnay commented Mar 28, 2018

This syntax was stabilized in rust-lang/rust#44101.

extern crate syn;
use syn::Expr;

fn main() {
    let m = "match x { | A => {} }";
    println!("{:#?}", syn::parse_str::<Expr>(m).unwrap());
}
@dtolnay dtolnay added this to the 0.13 milestone Mar 31, 2018
@dtolnay
Copy link
Owner Author

dtolnay commented Mar 31, 2018

Fixed in 18cc4d4.

@dtolnay dtolnay closed this as completed Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant