blob: 2f2b2229cf8c5dab352b3f1e670e000b45d13ceb [file]
//! Regression test for <https://github.com/rust-lang/rust/issues/136379>
#![feature(gca_min_const_items, gca_macroless_args)]
#![expect(incomplete_features)]
pub struct S();
impl S {
pub fn f() -> [u8; S] {
//~^ ERROR the constant `S` is not of type `usize`
[]
//~^ ERROR mismatched types [E0308]
}
}
pub fn main() {}