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

ices/62521-1.rs: fixed with errors #239

Merged
merged 1 commit into from
Dec 23, 2019
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#62521

#![crate_type = "lib"]

#![feature(generic_associated_types)]
trait Iterator {
    type Item<'a>: 'a;
}
=== stdout ===
=== stderr ===
warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/62521-1.rs:3:12
  |
3 | #![feature(generic_associated_types)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0280]: the requirement `for<'a> <Self as Iterator>::Item<'a> : 'a` is not satisfied
 --> /home/runner/work/glacier/glacier/ices/62521-1.rs:4:1
  |
4 |   trait Iterator {
  |   ^-------------
  |   |
  |  _required by `Iterator`
  | |
5 | |     type Item<'a>: 'a;
6 | | }
  | |_^

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/62521-1.rs:3:12
  |
3 | #![feature(generic_associated_types)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0280]: the requirement `for<'a> <Self as Iterator>::Item<'a> : 'a` is not satisfied
 --> /home/runner/work/glacier/glacier/ices/62521-1.rs:4:1
  |
4 |   trait Iterator {
  |   ^-------------
  |   |
  |  _required by `Iterator`
  | |
5 | |     type Item<'a>: 'a;
6 | | }
  | |_^

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit 2b0aa3a into master Dec 23, 2019
@JohnTitor JohnTitor deleted the autofix/ices/62521-1.rs branch December 23, 2019 12:11
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