mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
16 lines
330 B
Rust
16 lines
330 B
Rust
fn main_ref() {
|
|
let array = [(); {
|
|
let mut x = &0;
|
|
let mut n = 0;
|
|
while n < 5 {
|
|
//~^ ERROR constant evaluation is taking a long time
|
|
x = &0;
|
|
}
|
|
0
|
|
}];
|
|
|
|
let mut ptrs: Vec<*const [u8]> = vec![&array[0..0], &array[0..1], &array, &array[1..]];
|
|
}
|
|
|
|
fn main() {}
|