rust/src/test/ui/issues/issue-50571.rs

7 lines
126 B
Rust
Raw Normal View History

2019-09-30 14:55:12 -05:00
trait Foo {
fn foo([a, b]: [i32; 2]) {}
//~^ ERROR: patterns aren't allowed in methods without bodies
}
fn main() {}