2020-11-04 10:32:52 -06:00
|
|
|
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
|
2020-11-11 07:15:15 -06:00
|
|
|
(_,) = (1, 2); //~ ERROR mismatched types
|
2020-11-04 10:32:52 -06:00
|
|
|
}
|