Closed
Description
Code
fn main() {
for let i in 0..=10 {
println!("{}", i);
}
}
Current output
error: expected pattern, found `let`
--> src/main.rs:2:7
|
2 | for let i in 0..=10 {
| ^^^
|
help: remove the unnecessary `let` keyword
|
2 - for let i in 0..=10 {
2 + for i in 0..=10 {
|
Desired output
2 - for let i in 0..=10 {
2 + for i in 0..=10 {
Rationale and extra context
No response
Other cases
Rust Version
Nightly channel
Build using the Nightly version: 1.84.0-nightly
(2024-11-11 81eef2d362a6f03db6f8)
[Used playground]
Anything else?
No response