]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-50582.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / 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 }