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

ices/82335.rs: fixed with errors #1030

Merged
merged 1 commit into from
Dec 4, 2021
Merged

ices/82335.rs: fixed with errors #1030

merged 1 commit into from
Dec 4, 2021

Conversation

github-actions[bot]
Copy link
Contributor

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

Issue: rust-lang/rust#82335

union Union<I> {
    data: std::iter::Peekable<I>
}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `82335`
 --> /home/runner/work/glacier/glacier/ices/82335.rs:1:1
  |
1 | / union Union<I> {
2 | |     data: std::iter::Peekable<I>
3 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82335.rs`

error[E0277]: `I` is not an iterator
  --> /home/runner/work/glacier/glacier/ices/82335.rs:2:11
   |
2  |     data: std::iter::Peekable<I>
   |           ^^^^^^^^^^^^^^^^^^^^^^ `I` is not an iterator
   |
note: required by a bound in `Peekable`
help: consider restricting type parameter `I`
   |
1  | union Union<I: std::iter::Iterator> {
   |              +++++++++++++++++++++

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `82335`
 --> /home/runner/work/glacier/glacier/ices/82335.rs:1:1
  |
1 | / union Union<I> {
2 | |     data: std::iter::Peekable<I>
3 | | }
  | |_^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/82335.rs`

error[E0277]: `I` is not an iterator
  --> /home/runner/work/glacier/glacier/ices/82335.rs:2:11
   |
2  |     data: std::iter::Peekable<I>
   |           ^^^^^^^^^^^^^^^^^^^^^^ `I` is not an iterator
   |
note: required by a bound in `Peekable`
help: consider restricting type parameter `I`
   |
1  | union Union<I: std::iter::Iterator> {
   |              +++++++++++++++++++++

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0277, E0601.
For more information about an error, try `rustc --explain E0277`.
==============
@Alexendoo Alexendoo merged commit 3393c9d into master Dec 4, 2021
@Alexendoo Alexendoo deleted the autofix/ices/82335.rs branch December 4, 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