]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[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 }