2024-03-22 02:38:26 -05:00
|
|
|
// test for ICE "no entry found for key" in generics_of.rs #113017
|
|
|
|
|
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
2024-03-22 05:35:31 -05:00
|
|
|
pub fn foo()
|
2024-03-22 02:38:26 -05:00
|
|
|
where
|
2024-03-22 05:35:31 -05:00
|
|
|
for<const N: usize = { || {}; 1 }> ():,
|
|
|
|
//~^ ERROR only lifetime parameters can be used in this context
|
|
|
|
//~^^ ERROR defaults for generic parameters are not allowed in `for<...>` binders
|
2024-03-22 02:38:26 -05:00
|
|
|
{}
|
|
|
|
|
|
|
|
pub fn main() {}
|