1 // Regression test for #27042. Test that a loop's label is included in its span.
5 'a: // in this case, the citation is just the `break`:
6 loop { break }; //~ ERROR mismatched types
8 'b: //~ ERROR mismatched types
9 while true { break }; // but here we cite the whole loop
11 'c: //~ ERROR mismatched types
12 for _ in None { break }; // but here we cite the whole loop
14 'd: //~ ERROR mismatched types
15 while let Some(_) = None { break };