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

ices/78653.rs: fixed with errors #662

Merged
merged 1 commit into from
Feb 20, 2021
Merged

ices/78653.rs: fixed with errors #662

merged 1 commit into from
Feb 20, 2021

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#78653

fn main() {
    yield || for _ in 0 {}
}
=== stdout ===
=== stderr ===
error[E0658]: yield syntax is experimental
 --> /home/runner/work/glacier/glacier/ices/78653.rs:2:5
  |
2 |     yield || for _ in 0 {}
  |     ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #43122 <https://github.com/rust-lang/rust/issues/43122> for more information
  = help: add `#![feature(generators)]` to the crate attributes to enable

error[E0627]: yield expression outside of generator literal
 --> /home/runner/work/glacier/glacier/ices/78653.rs:2:5
  |
2 |     yield || for _ in 0 {}
  |     ^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: `{integer}` is not an iterator
 --> /home/runner/work/glacier/glacier/ices/78653.rs:2:23
  |
2 |     yield || for _ in 0 {}
  |                       ^ `{integer}` is not an iterator
  |
  = help: the trait `Iterator` is not implemented for `{integer}`
  = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
  = note: required because of the requirements on the impl of `IntoIterator` for `{integer}`
  = note: required by `into_iter`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0277, E0627, E0658.
For more information about an error, try `rustc --explain E0277`.
==============

=== stdout ===
=== stderr ===
error[E0658]: yield syntax is experimental
 --> /home/runner/work/glacier/glacier/ices/78653.rs:2:5
  |
2 |     yield || for _ in 0 {}
  |     ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #43122 <rust-lang/rust#43122> for more information
  = help: add `#![feature(generators)]` to the crate attributes to enable

error[E0627]: yield expression outside of generator literal
 --> /home/runner/work/glacier/glacier/ices/78653.rs:2:5
  |
2 |     yield || for _ in 0 {}
  |     ^^^^^^^^^^^^^^^^^^^^^^

error[E0277]: `{integer}` is not an iterator
 --> /home/runner/work/glacier/glacier/ices/78653.rs:2:23
  |
2 |     yield || for _ in 0 {}
  |                       ^ `{integer}` is not an iterator
  |
  = help: the trait `Iterator` is not implemented for `{integer}`
  = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
  = note: required because of the requirements on the impl of `IntoIterator` for `{integer}`
  = note: required by `into_iter`

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0277, E0627, E0658.
For more information about an error, try `rustc --explain E0277`.
==============
@JohnTitor JohnTitor merged commit a365b00 into master Feb 20, 2021
@JohnTitor JohnTitor deleted the autofix/ices/78653.rs branch February 20, 2021 12:29
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants