]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0642.rs
Auto merge of #55519 - fhartwig:hashmap-index-example, r=Centril
[rust.git] / src / test / ui / E0642.rs
1 #[derive(Clone, Copy)]
2 struct S;
3
4 trait T {
5     fn foo((x, y): (i32, i32)); //~ ERROR patterns aren't allowed in methods without bodies
6
7     fn bar((x, y): (i32, i32)) {} //~ ERROR patterns aren't allowed in methods without bodies
8
9     fn f(&ident: &S) {} // ok
10     fn g(&&ident: &&S) {} // ok
11     fn h(mut ident: S) {} // ok
12 }
13
14 fn main() {}