summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-50582.rs
blob: 2d5c9358752964fe15482ba28ddd3487ac359788 (plain)
1
2
3
4
5
fn main() {
    Vec::<[(); 1 + for x in 0..1 {}]>::new();
    //~^ ERROR cannot add
    //~| ERROR `for` is not allowed in a `const`
}