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
The readme claims that impl Trait was stabilized in Rust 1.31.0:
impl Trait
Strum is compatible with versions of rustc >= 1.31.0. That's the earliest version of stable rust that supports impl trait
But it actually was stabilized in Rust 1.26.0: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1260-2018-05-10
impl Trait is now stable allowing you to have abstract types in returns or in function parameters. E.g. fn foo() -> impl Iterator<Item=u8> or fn open(path: impl AsRef<Path>).
fn foo() -> impl Iterator<Item=u8>
fn open(path: impl AsRef<Path>)
Example in godbolt: https://rust.godbolt.org/z/1oqcej
The text was updated successfully, but these errors were encountered:
Looks like you're correct. I believe 1.31 is rust 2018, and that's the actually reason for the MSRV.
Will accept a PR with the fix or change myself.
Sorry, something went wrong.
From looking at the dependencies, I discovered that syn 1.0 requires Rust 1.31.
syn
Version requirement: Syn supports rustc 1.31 and up.
I guess all that needs to change is the README, mentioning syn's minimum supported Rust version.
No branches or pull requests
The readme claims that
impl Trait
was stabilized in Rust 1.31.0:But it actually was stabilized in Rust 1.26.0:
https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1260-2018-05-10
Example in godbolt:
https://rust.godbolt.org/z/1oqcej
The text was updated successfully, but these errors were encountered: