about summary refs log tree commit diff
path: root/tests/ui/parser/issues/error-pattern-issue-50571.rs
blob: 0c2ce6052cb80d20abcb791e2ded9608f010be72 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}