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

ices/83048.sh: fixed with errors #698

Merged
merged 1 commit into from
Mar 25, 2021
Merged

ices/83048.sh: fixed with errors #698

merged 1 commit into from
Mar 25, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83048

#!/bin/bash

rustc -Z unpretty=thir-tree - <<'EOF'
pub fn main() {break;}
EOF
=== stdout ===
=== stderr ===
error[E0268]: `break` outside of a loop
 --> <anon>:1:16
  |
1 | pub fn main() {break;}
  |                ^^^^^ cannot `break` outside of a loop

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0268]: `break` outside of a loop
 --> <anon>:1:16
  |
1 | pub fn main() {break;}
  |                ^^^^^ cannot `break` outside of a loop

error: aborting due to previous error

For more information about this error, try `rustc --explain E0268`.
==============
@JohnTitor JohnTitor merged commit 4b46d9d into master Mar 25, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83048.sh branch March 25, 2021 12:09
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