summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-112547.rs
blob: 8ecb2abccd4f99a1729fe57a9264a0adc3c54c79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(non_lifetime_binders)]
        //~^ WARNING the feature `non_lifetime_binders` is incomplete and may not be safe to use and/or cause compiler crashes

pub fn bar()
where
    for<const N: usize = {
    (||1usize)()
}> V: IntoIterator
//~^ ERROR cannot find type `V` in this scope [E0412]
{
}

fn main() {
    bar();
}