diff options
Diffstat (limited to 'src/test/ui/error-codes/E0642.rs')
-rw-r--r-- | src/test/ui/error-codes/E0642.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/error-codes/E0642.rs b/src/test/ui/error-codes/E0642.rs deleted file mode 100644 index 5f85f3935..000000000 --- a/src/test/ui/error-codes/E0642.rs +++ /dev/null @@ -1,20 +0,0 @@ -// run-rustfix - -#![allow(unused)] // for rustfix - -#[derive(Clone, Copy)] -struct S; - -trait T { - fn foo((x, y): (i32, i32)); //~ ERROR patterns aren't allowed in methods without bodies - - 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 -} - -fn main() {} |