3 #![allow(unused)] // for rustfix
9 fn foo((x, y): (i32, i32)); //~ ERROR patterns aren't allowed in methods without bodies
11 fn bar((x, y): (i32, i32)) {} //~ ERROR patterns aren't allowed in methods without bodies
13 fn method(S { .. }: S) {} //~ ERROR patterns aren't allowed in methods without bodies
15 fn f(&ident: &S) {} // ok
16 fn g(&&ident: &&S) {} // ok
17 fn h(mut ident: S) {} // ok