blob: 0f42f4eacb50af7b3e168ad0ac1b999ce685e8f7 [file]
// Regression test for <https://github.com/rust-lang/rust/issues/146084>.
//@ compile-flags: --crate-type=lib
struct S<const N: [()] = { loop {} }>;
//~^ ERROR the size for values of type `[()]` cannot be known at compilation time
//~| ERROR `[()]` is forbidden as the type of a const generic parameter