Skip to content

Commit

Permalink
ices/78653.rs: fixed with errors (rust-lang#662)
Browse files Browse the repository at this point in the history
=== 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`.
==============

Co-authored-by: rustbot <rustbot@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and rustbot committed Feb 20, 2021
1 parent 6888e54 commit a365b00
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit a365b00

Please sign in to comment.