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

ices/78336.rs: fixed with errors #1033

Merged
merged 1 commit into from
Dec 5, 2021
Merged

ices/78336.rs: fixed with errors #1033

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#78336

fn finds_explicit_bound<'b>() -> impl 'b {
    yield
}

fn main() {}
=== stdout ===
=== stderr ===
error: at least one trait must be specified
 --> /home/runner/work/glacier/glacier/ices/78336.rs:1:34
  |
1 | fn finds_explicit_bound<'b>() -> impl 'b {
  |                                  ^^^^^^^

error[E0658]: yield syntax is experimental
 --> /home/runner/work/glacier/glacier/ices/78336.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[E0627]: yield expression outside of generator literal
 --> /home/runner/work/glacier/glacier/ices/78336.rs:2:5
  |
2 |     yield
  |     ^^^^^

error: aborting due to 3 previous errors

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

=== stdout ===
=== stderr ===
error: at least one trait must be specified
 --> /home/runner/work/glacier/glacier/ices/78336.rs:1:34
  |
1 | fn finds_explicit_bound<'b>() -> impl 'b {
  |                                  ^^^^^^^

error[E0658]: yield syntax is experimental
 --> /home/runner/work/glacier/glacier/ices/78336.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[E0627]: yield expression outside of generator literal
 --> /home/runner/work/glacier/glacier/ices/78336.rs:2:5
  |
2 |     yield
  |     ^^^^^

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0627, E0658.
For more information about an error, try `rustc --explain E0627`.
==============
@Alexendoo Alexendoo merged commit 30d7731 into master Dec 5, 2021
@Alexendoo Alexendoo deleted the autofix/ices/78336.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