blob: e8af7e00b470ad51c09f83bae814b4203d2a8b33 [file] [edit]
//@compile-flags: -Znext-solver=globally
#![feature(generic_const_args, min_generic_const_args)]
struct S<const N: usize>;
fn foo<const N: usize>(_: S<{ const { const { N } } }>) {}
//~^ ERROR: generic parameters in const blocks are not allowed; use a named `const` item instead
fn main() {}