These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
10 lines
177 B
Rust
10 lines
177 B
Rust
//@ edition: 2015
|
|
//@ run-rustfix
|
|
|
|
#![allow(dead_code)]
|
|
trait Foo {
|
|
fn foo(_: [i32; 2]) {}
|
|
//~^ ERROR: patterns aren't allowed in methods without bodies
|
|
}
|
|
|
|
fn main() {}
|