mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
12 lines
332 B
Rust
12 lines
332 B
Rust
#![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() {}
|