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

ices/60473.rs: fixed with errors #288

Merged
merged 1 commit into from
Feb 16, 2020
Merged

ices/60473.rs: fixed with errors #288

merged 1 commit into from
Feb 16, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#60473

#![feature(impl_trait_in_bindings)]

struct A<'a>(&'a ());

trait Trait<T> {
}

impl<T> Trait<T> for () {
}

fn main() {
    let x: impl Trait<A> = ();
}
=== stdout ===
=== stderr ===
warning: the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
 --> /home/runner/work/glacier/glacier/ices/60473.rs:1:12
  |
1 | #![feature(impl_trait_in_bindings)]
  |            ^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default

error[E0720]: opaque type expands to a recursive type
  --> /home/runner/work/glacier/glacier/ices/60473.rs:12:12
   |
12 |     let x: impl Trait<A> = ();
   |            ^^^^^^^^^^^^^ expands to a recursive type
   |
   = note: type resolves to itself

error: aborting due to previous error

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

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

error[E0720]: opaque type expands to a recursive type
  --> /home/runner/work/glacier/glacier/ices/60473.rs:12:12
   |
12 |     let x: impl Trait<A> = ();
   |            ^^^^^^^^^^^^^ expands to a recursive type
   |
   = note: type resolves to itself

error: aborting due to previous error

For more information about this error, try `rustc --explain E0720`.
==============
@Alexendoo Alexendoo merged commit b0c3e05 into master Feb 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/60473.rs branch February 16, 2020 13:36
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