summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-50415.rs
blob: 151b9fe442c033a394a8046ece2697f6f57313a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass
fn main() {
    // Simplified test case
    let _ = || 0..=1;

    // Original test case
    let full_length = 1024;
    let range = {
        // do some stuff, omit here
        None
    };

    let range = range.map(|(s, t)| s..=t).unwrap_or(0..=(full_length-1));

    assert_eq!(range, 0..=1023);
}