summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17252.rs
blob: 7141e4874c02df96fec7968bd48442087533cc87 (plain)
1
2
3
4
5
6
7
8
9
10
const FOO: usize = FOO; //~ ERROR E0391

fn main() {
    let _x: [u8; FOO]; // caused stack overflow prior to fix
    let _y: usize = 1 + {
        const BAR: usize = BAR;
        let _z: [u8; BAR]; // caused stack overflow prior to fix
        1
    };
}