mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
12 lines
215 B
Rust
12 lines
215 B
Rust
// Check that mutable promoted length zero arrays don't check for conflicting
|
|
// access
|
|
|
|
//@ check-pass
|
|
|
|
pub fn main() {
|
|
let mut x: Vec<&[i32; 0]> = Vec::new();
|
|
for _ in 0..10 {
|
|
x.push(&[]);
|
|
}
|
|
}
|