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

ices/83472.rs: fixed with errors #1034

Merged
merged 1 commit into from
Dec 5, 2021
Merged

ices/83472.rs: fixed with errors #1034

merged 1 commit into from
Dec 5, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 5, 2021

Issue: rust-lang/rust#83472

fn yes_double_ended_iterator() -> impl {
    yield
}
=== stdout ===
=== stderr ===
error: at least one trait must be specified
 --> /home/runner/work/glacier/glacier/ices/83472.rs:1:35
  |
1 | fn yes_double_ended_iterator() -> impl {
  |                                   ^^^^

error[E0658]: yield syntax is experimental
 --> /home/runner/work/glacier/glacier/ices/83472.rs:2:5
  |
2 |     yield
  |     ^^^^^
  |
  = 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[E0601]: `main` function not found in crate `83472`
 --> /home/runner/work/glacier/glacier/ices/83472.rs:1:1
  |
1 | / fn yes_double_ended_iterator() -> impl {
2 | |     yield
3 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83472.rs`

error[E0627]: yield expression outside of generator literal
 --> /home/runner/work/glacier/glacier/ices/83472.rs:2:5
  |
2 |     yield
  |     ^^^^^

error: aborting due to 4 previous errors

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

=== stdout ===
=== stderr ===
error: at least one trait must be specified
 --> /home/runner/work/glacier/glacier/ices/83472.rs:1:35
  |
1 | fn yes_double_ended_iterator() -> impl {
  |                                   ^^^^

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

error[E0601]: `main` function not found in crate `83472`
 --> /home/runner/work/glacier/glacier/ices/83472.rs:1:1
  |
1 | / fn yes_double_ended_iterator() -> impl {
2 | |     yield
3 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/83472.rs`

error[E0627]: yield expression outside of generator literal
 --> /home/runner/work/glacier/glacier/ices/83472.rs:2:5
  |
2 |     yield
  |     ^^^^^

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0601, E0627, E0658.
For more information about an error, try `rustc --explain E0601`.
==============
@Alexendoo Alexendoo merged commit 06ef73c into master Dec 5, 2021
@Alexendoo Alexendoo deleted the autofix/ices/83472.rs branch December 5, 2021 14:32
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