blob: f62fae8621934dd862d22d1e761cb1e6383f51f8 (
plain)
1
2
3
4
5
6
7
8
9
|
//! Checks basic multiple variable declaration using tuple destructuring in a `let` binding.
//@ run-pass
pub fn main() {
let (x, y) = (10, 20);
let z = x + y;
assert_eq!(z, 30);
}
|