]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs
Rollup merge of #103644 - catlee:catlee/option-question-mark-docs, r=workingjubilee
[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 }