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

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

9 lines
137 B
Rust
Raw Normal View History

2020-07-02 05:32:12 +00:00
// run-rustfix
trait Foo {
fn foo(_: [i32; 2]) {}
//~^ ERROR: patterns aren't allowed in methods without bodies
}
fn main() {}