]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-labels.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / suggest-labels.rs
1 #[allow(unreachable_code, unused_labels)]
2 fn main() {
3     'foo: loop {
4         break 'fo; //~ ERROR use of undeclared label
5     }
6
7     'bar: loop {
8         continue 'bor; //~ ERROR use of undeclared label
9     }
10
11     'longlabel: loop {
12         'longlabel1: loop {
13             break 'longlable; //~ ERROR use of undeclared label
14         }
15     }
16 }