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

ices/62521-3.rs: fixed with errors #237

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)]
struct Foo;

impl Iterator for Foo {
    type Item<'b> = &'b Foo;

    fn next(&mut self) -> Option<Self::Item> {
        None
    }
}
=== stdout ===
=== stderr ===
warning: the feature `generic_associated_types` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/62521-3.rs:3:12
  |
3 | #![feature(generic_associated_types)]
  |            ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0195]: lifetime parameters or bounds on type `Item` do not match the trait declaration
 --> /home/runner/work/glacier/glacier/ices/62521-3.rs:7:14
  |
7 |     type Item<'b> = &'b Foo;
  |              ^^^^ lifetimes do not match type in trait

error: aborting due to previous error

For more information about this error, try `rustc --explain E0195`.
==============

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

error[E0195]: lifetime parameters or bounds on type `Item` do not match the trait declaration
 --> /home/runner/work/glacier/glacier/ices/62521-3.rs:7:14
  |
7 |     type Item<'b> = &'b Foo;
  |              ^^^^ lifetimes do not match type in trait

error: aborting due to previous error

For more information about this error, try `rustc --explain E0195`.
==============
@JohnTitor JohnTitor merged commit 9f495a3 into master Dec 23, 2019
@JohnTitor JohnTitor deleted the autofix/ices/62521-3.rs branch December 23, 2019 12:10
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