blob: 679fe7e41e9c765fdd26d3a0756161ed5c58f0eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
An unreachable label was used.
Erroneous code example:
```compile_fail,E0767
'a: loop {
|| {
loop { break 'a } // error: use of unreachable label `'a`
};
}
```
Ensure that the label is within scope. Labels are not reachable through
functions, closures, async blocks or modules. Example:
```
'a: loop {
break 'a; // ok!
}
```
|