summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs
blob: 91c6dfb8e0a923ff64d8f3db00c5a26c624de63a (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(non_lifetime_binders)]
//~^ WARN the feature `non_lifetime_binders` is incomplete

fn b()
where
    for<const C: usize> [(); C]: Copy,
    //~^ ERROR cannot capture late-bound const parameter in a constant
{
}

fn main() {}