rust/src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs
2018-12-25 21:08:33 -07:00

14 lines
230 B
Rust

// Check that mutable promoted length zero arrays don't check for conflicting
// access
// run-pass
#![feature(nll)]
pub fn main() {
let mut x: Vec<&[i32; 0]> = Vec::new();
for i in 0..10 {
x.push(&[]);
}
}