]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-50582.rs
Auto merge of #105851 - dtolnay:peekmutleak, r=Mark-Simulacrum
[rust.git] / tests / ui / issues / issue-50582.rs
1 fn main() {
2     Vec::<[(); 1 + for x in 0..1 {}]>::new();
3     //~^ ERROR cannot add
4     //~| ERROR `for` is not allowed in a `const`
5 }