Skip to content

Commit b2f8a27

Browse files
authored
Rollup merge of rust-lang#90521 - jhpratt:stabilize-destructuring_assignment, r=jackh726,pnkfelix
Stabilize `destructuring_assignment` Closes rust-lang#71126 - [Stabilization report](rust-lang#71126 (comment)) - [Completed FCP](rust-lang#71126 (comment)) `@rustbot` label +F-destructuring-assignment +T-lang Also needs +relnotes but I don't have permission to add that tag.
2 parents 55df990 + f8817f6 commit b2f8a27

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

tests/ui/crashes/ice-6250.stderr

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1-
error[E0658]: destructuring assignments are unstable
2-
--> $DIR/ice-6250.rs:12:25
3-
|
4-
LL | Some(reference) = cache.data.get(key) {
5-
| --------------- ^
6-
| |
7-
| cannot assign to this expression
8-
|
9-
= note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
10-
= help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
11-
121
error[E0601]: `main` function not found in crate `ice_6250`
132
--> $DIR/ice-6250.rs:4:1
143
|
@@ -41,7 +30,7 @@ error[E0308]: mismatched types
4130
LL | Some(reference) = cache.data.get(key) {
4231
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
4332

44-
error: aborting due to 4 previous errors
33+
error: aborting due to 3 previous errors
4534

46-
Some errors have detailed explanations: E0308, E0601, E0658.
35+
Some errors have detailed explanations: E0308, E0601.
4736
For more information about an error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)