rust/tests/ui/traits/non_lifetime_binders/binder-defaults-119489.rs
2024-07-20 19:45:24 -04:00

14 lines
484 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 late-bound const parameters cannot be used currently
//~| ERROR defaults for generic parameters are not allowed in `for<...>` binders
//~| ERROR defaults for generic parameters are not allowed in `for<...>` binders
{}
fn main() {}