blob: 0c2ce6052cb80d20abcb791e2ded9608f010be72 [file] [log] [blame]
// There is a regression introduced for issue #143828
//@ edition: 2015
#![allow(dead_code)]
trait Foo {
fn foo([a, b]: [i32; 2]) {}
//~^ ERROR: expected `;` or `]`, found `,`
//~| ERROR: patterns aren't allowed in methods without bodies
}
fn main() {}