blob: 68aa30bd65bbecd8b7863593d9a900f99824190c [file] [log] [blame] [edit]
// Regression test for #140729
#![expect(incomplete_features)]
#![feature(min_generic_const_args)]
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() {}