summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-70388-without-witness.fixed
blob: 8d981405ea1ca344466bf2a6c1ffad5e2bc18575 (plain)
1
2
3
4
5
6
7
8
9
// 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 `...`
}