rust/tests/ui/parser/issues/issue-70388-without-witness.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
259 B
Rust
Raw Normal View History

2020-07-02 14:32:12 +09:00
// run-rustfix
// This is for checking if we can apply suggestions as-is.
2022-07-25 22:36:03 +02:00
pub struct Foo(#[allow(unused_tuple_struct_fields)] i32);
2020-07-02 14:32:12 +09:00
fn main() {
let Foo(...) = Foo(0); //~ ERROR unexpected `...`
let [_, ..., _] = [0, 1]; //~ ERROR unexpected `...`
}