about summary refs log tree commit diff
path: root/tests/ui/range/misleading-field-access-hint.rs
blob: 252f1a4833c773371ca3b16f984a65ff03f7f795 (plain)
1
2
3
4
5
6
7
8
// 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`
    }
}