mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 13:44:13 +00:00
11 lines
256 B
Rust
11 lines
256 B
Rust
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
|
|
};
|
|
}
|