mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
10 lines
306 B
Rust
10 lines
306 B
Rust
const C: i32 = 1;
|
|
|
|
fn main() {
|
|
let (mut a, mut b);
|
|
(a, .., b, ..) = (0, 1); //~ ERROR `..` can only be used once per tuple pattern
|
|
(a, a, b) = (1, 2); //~ ERROR mismatched types
|
|
(C, ..) = (0,1); //~ ERROR invalid left-hand side of assignment
|
|
(_,) = (1, 2); //~ ERROR mismatched types
|
|
}
|