about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-70388-without-witness.rs
blob: b7eb76a4147558af639da38ef167ceb4569127fb (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(dead_code)] i32);

fn main() {
    let Foo(...) = Foo(0); //~ ERROR unexpected `...`
    let [_, ..., _] = [0, 1]; //~ ERROR unexpected `...`
}