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

ices/82830.rs: fixed with errors #959

Merged
merged 1 commit into from
Sep 4, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 3, 2021

Issue: rust-lang/rust#82830

trait A<Y, N> {
    type B;
}
type MaybeBox<T> = <T as A<T, Box<T>>>::B;
struct P {
    t: MaybeBox<P>
}
impl<Y, N> A<Y, N> for P {
    type B = N;
}
fn main() {
    let t: MaybeBox<P>;
}
=== stdout ===
=== stderr ===
error[E0275]: overflow evaluating the requirement `P: Sized`
 --> /home/runner/work/glacier/glacier/ices/82830.rs:6:8
  |
6 |     t: MaybeBox<P>
  |        ^^^^^^^^^^^
  |
note: required because of the requirements on the impl of `A<P, Box<P>>` for `P`
 --> /home/runner/work/glacier/glacier/ices/82830.rs:8:12
  |
8 | impl<Y, N> A<Y, N> for P {
  |            ^^^^^^^     ^

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0275]: overflow evaluating the requirement `P: Sized`
 --> /home/runner/work/glacier/glacier/ices/82830.rs:6:8
  |
6 |     t: MaybeBox<P>
  |        ^^^^^^^^^^^
  |
note: required because of the requirements on the impl of `A<P, Box<P>>` for `P`
 --> /home/runner/work/glacier/glacier/ices/82830.rs:8:12
  |
8 | impl<Y, N> A<Y, N> for P {
  |            ^^^^^^^     ^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0275`.
==============
@Alexendoo Alexendoo merged commit be5b341 into master Sep 4, 2021
@Alexendoo Alexendoo deleted the autofix/ices/82830.rs branch September 4, 2021 10:51
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