cdea6d8382
Fixes #113133
14 lines
345 B
Rust
14 lines
345 B
Rust
// ICE no entry found for key generics_of
|
|
// issue: rust-lang/rust#113133
|
|
|
|
#![allow(incomplete_features)]
|
|
#![feature(generic_const_exprs, non_lifetime_binders)]
|
|
|
|
pub fn foo()
|
|
where
|
|
for<const N: usize = { const fn bar() {} bar(); 1 }> ():,
|
|
//~^ ERROR defaults for generic parameters are not allowed in `for<...>` binders
|
|
{}
|
|
|
|
fn main() {}
|