rustc/tests/ui/range/misleading-field-access-hint.rs
2025-01-11 15:57:26 +01:00

9 lines
194 B
Rust

// Check if rustc still displays the misleading hint to write `.` instead of `..`
fn main() {
let width = 10;
// ...
for _ in 0..w {
//~^ ERROR cannot find value `w`
}
}