// revisions: full min #![cfg_attr(full, feature(const_generics))] #![cfg_attr(full, allow(incomplete_features))] struct Foo; impl Foo { fn bar(self) -> Foo { Foo } fn baz(self) -> Foo { println!("baz: {}", N); Foo } } fn main() { Foo.bar().bar().bar().bar().baz(); //~ ERROR type annotations needed }