summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/non_lifetime_binders/capture-late-ct-in-anon.rs
blob: bbae67f0bad412334e6b29c6eeed3f6be21709f3 (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 constant
{
}

fn main() {}