blob: 5c7290b40be27982d810e29172cb36f13610d419 [file] [log] [blame]
//! Regression test for <https://github.com/rust-lang/rust/issues/136379>
#![feature(min_generic_const_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() {}