summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/issue-63364.rs
blob: 5223267a69a498a2ae4f27e113ffc72ed03e7b7a (plain)
1
2
3
4
5
6
7
8
9
10
fn part(_: u16) -> u32 {
    1
}

fn main() {
    for n in 100_000.. {
    //~^ ERROR: literal out of range for `u16`
        let _ = part(n);
    }
}