// check-pass struct Struct; impl Struct { fn method(&self) {} } fn test(x: Struct) { Struct::::method::(&x); x.method::(); } fn main() {}