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

ices/45814.rs: fixed with errors #1371

Merged
merged 1 commit into from
Aug 5, 2022
Merged

ices/45814.rs: fixed with errors #1371

merged 1 commit into from
Aug 5, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 5, 2022

Issue: rust-lang/rust#45814

#![feature(specialization)]

pub trait Trait<T> { }

default impl<T, U> Trait<T> for U { }

impl<T> Trait<<T as Iterator>::Item> for T { }

fn main() { }
=== stdout ===
=== stderr ===
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/45814.rs:1:12
  |
1 | #![feature(specialization)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
  = help: consider using `min_specialization` instead, which is more stable and complete

error[E0275]: overflow evaluating the requirement `T: Trait<_>`
  |
  = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`45814`)
note: required because of the requirements on the impl of `Trait<_>` for `T`
 --> /home/runner/work/glacier/glacier/ices/45814.rs:5:20
  |
5 | default impl<T, U> Trait<T> for U { }
  |                    ^^^^^^^^     ^
  = note: 128 redundant requirements hidden
  = note: required because of the requirements on the impl of `Trait<_>` for `T`

error: aborting due to previous error; 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
 --> /home/runner/work/glacier/glacier/ices/45814.rs:1:12
  |
1 | #![feature(specialization)]
  |            ^^^^^^^^^^^^^^
  |
  = note: `#[warn(incomplete_features)]` on by default
  = note: see issue #31844 <rust-lang/rust#31844> for more information
  = help: consider using `min_specialization` instead, which is more stable and complete

error[E0275]: overflow evaluating the requirement `T: Trait<_>`
  |
  = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`45814`)
note: required because of the requirements on the impl of `Trait<_>` for `T`
 --> /home/runner/work/glacier/glacier/ices/45814.rs:5:20
  |
5 | default impl<T, U> Trait<T> for U { }
  |                    ^^^^^^^^     ^
  = note: 128 redundant requirements hidden
  = note: required because of the requirements on the impl of `Trait<_>` for `T`

error: aborting due to previous error; 1 warning emitted

For more information about this error, try `rustc --explain E0275`.
==============
@JohnTitor JohnTitor merged commit 785ab4d into master Aug 5, 2022
@JohnTitor JohnTitor deleted the autofix/ices/45814.rs branch August 5, 2022 21:37
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