// test that defaulted const params are not used to help type inference struct Foo; impl Foo { fn foo() -> Self { loop {} } } fn main() { let foo = Foo::<1>::foo(); let foo = Foo::foo(); //~^ error: type annotations needed for `Foo` }