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

ices/89868.rs: fixed with errors #1576

Merged
merged 1 commit into from
May 5, 2023
Merged

ices/89868.rs: fixed with errors #1576

merged 1 commit into from
May 5, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 5, 2023

Issue: rust-lang/rust#89868

struct A<B>(B);
impl<B>A<B>{fn d(){fn d(){Self(1)}}}


pub fn main() {}
=== stdout ===
=== stderr ===
error[E0401]: can't use generic parameters from outer function
 --> /home/runner/work/glacier/glacier/ices/89868.rs:2:27
  |
2 | impl<B>A<B>{fn d(){fn d(){Self(1)}}}
  |                           ^^^^
  |                           |
  |                           use of generic parameter from outer function
  |                           can't use `Self` here

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error[E0401]: can't use generic parameters from outer function
 --> /home/runner/work/glacier/glacier/ices/89868.rs:2:27
  |
2 | impl<B>A<B>{fn d(){fn d(){Self(1)}}}
  |                           ^^^^
  |                           |
  |                           use of generic parameter from outer function
  |                           can't use `Self` here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0401`.
==============
@JohnTitor JohnTitor merged commit a566aa1 into master May 5, 2023
@JohnTitor JohnTitor deleted the autofix/ices/89868.rs branch May 5, 2023 03:41
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