mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-20 03:20:39 +00:00
These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
11 lines
182 B
Rust
11 lines
182 B
Rust
//@ edition: 2015
|
|
//@ run-rustfix
|
|
|
|
#![allow(dead_code)]
|
|
trait Foo {
|
|
fn foo([a, b]: [i32; 2]) {}
|
|
//~^ ERROR: patterns aren't allowed in methods without bodies
|
|
}
|
|
|
|
fn main() {}
|