Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up`async fn` inside inherent impl produces generic parse error on 2015 edition #53714
Comments
This comment has been minimized.
This comment has been minimized.
Since async blocks and some versions of the final |
jonas-schievink
added
the
A-async-await
label
Jan 27, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
comex commentedAug 26, 2018
When compiling for the 2018 edition, rustc allows
async fn
both outside of an impl and within an inherent impl.When compiling for the 2015 edition,
async fn
works outside of an impl, but putting one inside an inherent impl produces this error:Either this should be allowed, or it should result in a better error message that recommends switching to the 2018 edition.