2018-07-31 15:35:22 -05:00
|
|
|
// Check that mutable promoted length zero arrays don't check for conflicting
|
|
|
|
// access
|
|
|
|
|
2019-09-01 16:30:19 -05:00
|
|
|
// check-pass
|
2018-07-31 15:35:22 -05:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let mut x: Vec<&[i32; 0]> = Vec::new();
|
2019-09-01 16:30:19 -05:00
|
|
|
for _ in 0..10 {
|
2018-07-31 15:35:22 -05:00
|
|
|
x.push(&[]);
|
|
|
|
}
|
|
|
|
}
|