diff options
| author | bors <bors@rust-lang.org> | 2025-07-12 07:44:04 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-12 07:44:04 +0000 |
| commit | 2f9c9cede68be26774ea44efc79d0391f1c58af2 (patch) | |
| tree | dbdb3f88ed95d7017cf388cda3eaedcd9a0f2852 /tests/ui/destructuring-assignment/let-binding-tuple-destructuring.rs | |
| parent | 9535feebd5741a55fc24e84060e82d41a75dac6e (diff) | |
| parent | e43481e362431442f2a6e39c3c2d3001ff0cf917 (diff) | |
| download | rust-2f9c9cede68be26774ea44efc79d0391f1c58af2.tar.gz rust-2f9c9cede68be26774ea44efc79d0391f1c58af2.zip | |
Auto merge of #143766 - matthiaskrgr:rollup-0x7t69s, r=matthiaskrgr
Rollup of 8 pull requests Successful merges: - rust-lang/rust#142391 (rust: library: Add `setsid` method to `CommandExt` trait) - rust-lang/rust#143302 (`tests/ui`: A New Order [27/N]) - rust-lang/rust#143303 (`tests/ui`: A New Order [28/28] FINAL PART) - rust-lang/rust#143568 (std: sys: net: uefi: tcp4: Add timeout support) - rust-lang/rust#143611 (Mention more APIs in `ParseIntError` docs) - rust-lang/rust#143661 (chore: Improve how the other suggestions message gets rendered) - rust-lang/rust#143708 (fix: Include frontmatter in -Zunpretty output ) - rust-lang/rust#143718 (Make UB transmutes really UB in LLVM) r? `@ghost` `@rustbot` modify labels: rollup try-job: i686-gnu-nopt-1 try-job: test-various
Diffstat (limited to 'tests/ui/destructuring-assignment/let-binding-tuple-destructuring.rs')
| -rw-r--r-- | tests/ui/destructuring-assignment/let-binding-tuple-destructuring.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/destructuring-assignment/let-binding-tuple-destructuring.rs b/tests/ui/destructuring-assignment/let-binding-tuple-destructuring.rs new file mode 100644 index 00000000000..f62fae86219 --- /dev/null +++ b/tests/ui/destructuring-assignment/let-binding-tuple-destructuring.rs @@ -0,0 +1,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); +} |
