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
Input:
trait Trait { fn method(&self); } impl<F: Fn() -> T, T> Trait for F { fn method(&self) {} } fn main() { || .. .method(); }
Rustc's parser accepts this with the precedence as (|| ..).method(), while Syn fails to parse.
(|| ..).method()
error: expected expression --> dev/main.rs:10:11 | 10 | || .. .method(); | ^
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Input:
Rustc's parser accepts this with the precedence as
(|| ..).method()
, while Syn fails to parse.The text was updated successfully, but these errors were encountered: