// check-pass #![allow(dead_code)] #![allow(non_camel_case_types)] trait clam { fn get(self) -> A; } struct foo { x: A, } impl foo { pub fn bar>(&self, _c: C) -> B { panic!(); } } fn foo(b: A) -> foo { foo { x: b } } pub fn main() { }