2018-02-03 14:15:00 -06:00
|
|
|
const FOO: usize = FOO; //~ ERROR E0391
|
2014-09-14 19:45:13 -05:00
|
|
|
|
|
|
|
fn main() {
|
2014-12-19 20:20:51 -06:00
|
|
|
let _x: [u8; FOO]; // caused stack overflow prior to fix
|
2015-01-08 05:02:42 -06:00
|
|
|
let _y: usize = 1 + {
|
2018-02-03 14:15:00 -06:00
|
|
|
const BAR: usize = BAR;
|
2014-12-19 20:20:51 -06:00
|
|
|
let _z: [u8; BAR]; // caused stack overflow prior to fix
|
2014-09-14 19:45:13 -05:00
|
|
|
1
|
|
|
|
};
|
|
|
|
}
|