mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 12:35:11 +00:00
8 lines
205 B
Rust
8 lines
205 B
Rust
struct Foo(i32);
|
|
|
|
fn main() {
|
|
let Foo(...) = Foo(0); //~ ERROR unexpected `...`
|
|
let [_, ..., _] = [0, 1]; //~ ERROR unexpected `...`
|
|
let _recovery_witness: () = 0; //~ ERROR mismatched types
|
|
}
|