rust/tests/ui/nll/promotable-mutable-zst-doesnt-conflict.rs
2023-01-11 09:32:08 +00:00

12 lines
214 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(&[]);
}
}