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

fn foo() -> usize
where
    for<T> [i32; { let _: T = todo!(); 0 }]:,
    //~^ ERROR cannot capture late-bound type parameter in a constant
{}

fn main() {}