rust/tests/ui/issues/issue-50571.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
142 B
Rust
Raw Normal View History

2020-07-02 00:32:12 -05:00
// run-rustfix
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() {}