mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
10 lines
241 B
Rust
10 lines
241 B
Rust
//@ run-rustfix
|
|
// This is for checking if we can apply suggestions as-is.
|
|
|
|
pub struct Foo(#[allow(dead_code)] i32);
|
|
|
|
fn main() {
|
|
let Foo(..) = Foo(0); //~ ERROR unexpected `...`
|
|
let [_, .., _] = [0, 1]; //~ ERROR unexpected `...`
|
|
}
|