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 05:32:12 +00:00
// run-rustfix
2019-09-30 19:55:12 +00:00
trait Foo {
fn foo([a, b]: [i32; 2]) {}
//~^ ERROR: patterns aren't allowed in methods without bodies
}
fn main() {}