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

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

10 lines
164 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)]
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() {}