]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/promotable-mutable-zst-doesnt-conflict.rs
Rollup merge of #60685 - dtolnay:spdx, r=nikomatsakis
[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 // run-pass
5
6 #![feature(nll)]
7
8 pub fn main() {
9     let mut x: Vec<&[i32; 0]> = Vec::new();
10     for i in 0..10 {
11         x.push(&[]);
12     }
13 }