]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / promotable-mutable-zst-doesnt-conflict.rs
1 // Check that mutable promoted length zero arrays don't check for conflicting
2 // access
3
4 // check-pass
5
6 pub fn main() {
7     let mut x: Vec<&[i32; 0]> = Vec::new();
8     for _ in 0..10 {
9         x.push(&[]);
10     }
11 }