blob: 94733f88c2dae6f8d58528f9f57fd24a17b5f9d9 [file] [log] [blame] [edit]
#![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 constant
{ 42 }
fn main() {}