rust/tests/ui/parser/issues/issue-70388-without-witness.fixed
2023-01-11 09:32:08 +00:00

10 lines
257 B
Rust

// run-rustfix
// This is for checking if we can apply suggestions as-is.
pub struct Foo(#[allow(unused_tuple_struct_fields)] i32);
fn main() {
let Foo(..) = Foo(0); //~ ERROR unexpected `...`
let [_, .., _] = [0, 1]; //~ ERROR unexpected `...`
}