Skip to content

Commit 1100aec

Browse files
committed
Remove label break in type coercions because it's nightly.
1 parent 71dff44 commit 1100aec

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/type-coercions.md

-13
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ LUB coercion is used and only used in the following situations:
194194
+ To find the common type for a series of if branches.
195195
+ To find the common type for a series of match arms.
196196
+ To find the common type for array elements.
197-
+ To find the type for block targeted by multiple breaks(including loop block).
198197
+ To find the type for the return type of a closure with multiple return statements.
199198
+ To check the type for the return type of a function with multiple return statements.
200199

@@ -212,7 +211,6 @@ expressions considered thus far have implicit coercions.)
212211
### Examples:
213212

214213
```rust
215-
# #![feature(label_break_value)]
216214
# let (a, b, c) = (0, 1, 2);
217215
// For if branches
218216
let bar = if true {
@@ -233,17 +231,6 @@ let baw = match 42 {
233231
// For array elements
234232
let bax = [a, b, c];
235233

236-
// For block targeted by multiple breaks(unstable, check #48594)
237-
let bay = 'out: {
238-
if true {
239-
break 'out a;
240-
} else if false {
241-
break 'out b;
242-
} else {
243-
break 'out c;
244-
}
245-
};
246-
247234
// For closure with multiple return statements
248235
let clo = || {
249236
if true {

0 commit comments

Comments
 (0)