You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw this error in a minimal project that didn't have a rustfmt.toml. I was able to make the errors go away by creating a rustfmt.toml and adding an edition = "2018" to it.
#12232
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.
I saw this error in a minimal project that didn't have a rustfmt.toml. I was able to make the errors go away by creating a rustfmt.toml and adding an edition = "2018" to it.
I can't close this issue, but @bjorn3's suggestion in #12233 (comment) is correct. You are on the 2015 edition, not the 2021 edition. The error message you pasted there says:
I saw this error in a minimal project that didn't have a
rustfmt.toml
. I was able to make the errors go away by creating arustfmt.toml
and adding anedition = "2018"
to it.Originally posted by @davidbarsky in #1959 (comment)
The text was updated successfully, but these errors were encountered: