mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
ed88af2163
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
12 lines
267 B
Rust
12 lines
267 B
Rust
// 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() {}
|