blob: 5524e91dc401b6859a190c6f1f334059c2830290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(destructuring_assignment)]
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
}
|