]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/E0642.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / E0642.rs
index 8b74e5abe19df5b463754a28a4815cd85fd0c989..cfbd362c1da1995812f3fdd3c1926d3693d4ab01 100644 (file)
@@ -6,6 +6,8 @@ trait T {
 
     fn bar((x, y): (i32, i32)) {} //~ ERROR patterns aren't allowed in methods without bodies
 
+    fn method(S { .. }: S) {} //~ ERROR patterns aren't allowed in methods without bodies
+
     fn f(&ident: &S) {} // ok
     fn g(&&ident: &&S) {} // ok
     fn h(mut ident: S) {} // ok