mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00
10 lines
195 B
Rust
10 lines
195 B
Rust
//! 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);
|
|
}
|