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

ices/98432.rs: fixed with errors #1325

Merged
merged 1 commit into from
Jun 29, 2022
Merged

ices/98432.rs: fixed with errors #1325

merged 1 commit into from
Jun 29, 2022

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#98432

struct Struct<T>(T);

impl<T> Struct<T> {
    const CONST: fn() = || {
        struct _Obligation
        where
            T:;
    };
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0401]: can't use generic parameters from outer function
 --> /home/runner/work/glacier/glacier/ices/98432.rs:7:13
  |
3 | impl<T> Struct<T> {
  |      - type parameter from outer function
...
7 |             T:;
  |             ^ use of generic parameter from outer function
  |
  = help: try using a local generic parameter instead

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/98432.rs:7:13
  |
3 | impl<T> Struct<T> {
  |      - type parameter from outer function
...
7 |             T:;
  |             ^ use of generic parameter from outer function
  |
  = help: try using a local generic parameter instead

error: aborting due to previous error

For more information about this error, try `rustc --explain E0401`.
==============
@Alexendoo Alexendoo merged commit 2a16baa into master Jun 29, 2022
@Alexendoo Alexendoo deleted the autofix/ices/98432.rs branch June 29, 2022 12:09
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