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

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

10 lines
159 B
Rust
Raw Normal View History

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