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

ices/74761.rs: fixed with errors #477

Merged
merged 1 commit into from
Sep 29, 2020
Merged

ices/74761.rs: fixed with errors #477

merged 1 commit into from
Sep 29, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#74761

#![feature(member_constraints)]
#![feature(type_alias_impl_trait)]

pub trait A {
    type B;
    fn f(&self) -> Self::B;
}
impl<'a, 'b> A for () {
    type B = impl core::fmt::Debug;

    fn f(&self) -> Self::B {}
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
 --> /home/runner/work/glacier/glacier/ices/74761.rs:8:6
  |
8 | impl<'a, 'b> A for () {
  |      ^^ unconstrained lifetime parameter

error[E0207]: the lifetime parameter `'b` is not constrained by the impl trait, self type, or predicates
 --> /home/runner/work/glacier/glacier/ices/74761.rs:8:10
  |
8 | impl<'a, 'b> A for () {
  |          ^^ unconstrained lifetime parameter

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
 --> /home/runner/work/glacier/glacier/ices/74761.rs:8:6
  |
8 | impl<'a, 'b> A for () {
  |      ^^ unconstrained lifetime parameter

error[E0207]: the lifetime parameter `'b` is not constrained by the impl trait, self type, or predicates
 --> /home/runner/work/glacier/glacier/ices/74761.rs:8:10
  |
8 | impl<'a, 'b> A for () {
  |          ^^ unconstrained lifetime parameter

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0207`.
==============
@JohnTitor JohnTitor merged commit d124170 into master Sep 29, 2020
@JohnTitor JohnTitor deleted the autofix/ices/74761.rs branch September 29, 2020 19:27
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