rust/src/test/ui/issues/issue-50571.rs
2019-10-01 04:55:12 +09:00

7 lines
126 B
Rust

trait Foo {
fn foo([a, b]: [i32; 2]) {}
//~^ ERROR: patterns aren't allowed in methods without bodies
}
fn main() {}