omitting edition produces unexpected errors #14023
Labels
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
If there is no
edition = "2021"
line inCargo.toml
, the project can't be build because of:This is unexpected. I would like to know why is this happening? What edition is used when edition is omitted?
Steps
Cargo.toml:
src/main.rs:
Note that if explicitly set the edition to 2021, the project builds fine.
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: