blob: 9d475f8224fa5e2b491ee1c09e748bf1d20b0fc2 [file]
// Regression test for #140729
#![expect(incomplete_features)]
#![feature(min_generic_const_args)]
type const C: usize = 0;
pub struct A<const M: usize> {}
impl A<C> {
fn fun1() {}
//~^ ERROR duplicate definitions with name `fun1`
}
impl A {
//~^ ERROR missing generics for struct `A`
fn fun1() {}
}
fn main() {}