mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
13 lines
408 B
Rust
13 lines
408 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 fun()
|
|
where
|
|
for<T = (), const N: usize = 1> ():,
|
|
//~^ ERROR defaults for generic parameters are not allowed in `for<...>` binders
|
|
//~| ERROR defaults for generic parameters are not allowed in `for<...>` binders
|
|
{}
|
|
|
|
fn main() {}
|