mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 10:30:37 +00:00
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
11 lines
177 B
Rust
11 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() {}
|