summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-50585.rs
blob: a2f11c98d5a3070536a3db46ad6d6cbc1765c0ad (plain)
1
2
3
4
5
fn main() {
    |y: Vec<[(); for x in 0..2 {}]>| {};
    //~^ ERROR mismatched types
    //~| ERROR `for` is not allowed in a `const`
}