Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

ices/73541.rs: fixed with errors #418

Merged
merged 1 commit into from
Jul 4, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 4, 2020

Issue: rust-lang/rust#73541

fn main() {
    'a: loop {
        async {
            loop {
                continue 'a;
            }
        };
    }
}
=== stdout ===
=== stderr ===
error[E0767]: use of unreachable label `'a`
 --> /home/runner/work/glacier/glacier/ices/73541.rs:5:26
  |
2 |     'a: loop {
  |     -- unreachable label defined here
...
5 |                 continue 'a;
  |                          ^^ unreachable label `'a`
  |
  = note: labels are unreachable through functions, closures, async blocks and modules

warning: unused label
 --> /home/runner/work/glacier/glacier/ices/73541.rs:2:5
  |
2 |     'a: loop {
  |     ^^
  |
  = note: `#[warn(unused_labels)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0767`.
==============

=== stdout ===
=== stderr ===
error[E0767]: use of unreachable label `'a`
 --> /home/runner/work/glacier/glacier/ices/73541.rs:5:26
  |
2 |     'a: loop {
  |     -- unreachable label defined here
...
5 |                 continue 'a;
  |                          ^^ unreachable label `'a`
  |
  = note: labels are unreachable through functions, closures, async blocks and modules

warning: unused label
 --> /home/runner/work/glacier/glacier/ices/73541.rs:2:5
  |
2 |     'a: loop {
  |     ^^
  |
  = note: `#[warn(unused_labels)]` on by default

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0767`.
==============
@Alexendoo Alexendoo merged commit 7b8efbe into master Jul 4, 2020
@Alexendoo Alexendoo deleted the autofix/ices/73541.rs branch July 4, 2020 15:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants