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

ices/105305.rs: fixed with errors #1510

Merged
merged 1 commit into from
Feb 21, 2023
Merged

ices/105305.rs: fixed with errors #1510

merged 1 commit into from
Feb 21, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#105305

#![feature(inherent_associated_types)]
#![allow(incomplete_features)]

struct S<T>(T);

impl<T, 'a> S<T> { // Also repros with any other lifetimes such as '_  ,switching order to 'a, T also repros.
    type P = T;
}

fn main() {
    type A = S<()>::P;
}
=== stdout ===
=== stderr ===
error: lifetime parameters must be declared prior to type and const parameters
 --> /home/runner/work/glacier/glacier/ices/105305.rs:6:9
  |
6 | impl<T, 'a> S<T> { // Also repros with any other lifetimes such as '_  ,switching order to 'a, T also repros.
  |     ----^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T>`

error: aborting due to previous error

==============

=== stdout ===
=== stderr ===
error: lifetime parameters must be declared prior to type and const parameters
 --> /home/runner/work/glacier/glacier/ices/105305.rs:6:9
  |
6 | impl<T, 'a> S<T> { // Also repros with any other lifetimes such as '_  ,switching order to 'a, T also repros.
  |     ----^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T>`

error: aborting due to previous error

==============
@Alexendoo Alexendoo merged commit 5d35ccc into master Feb 21, 2023
@Alexendoo Alexendoo deleted the autofix/ices/105305.rs branch February 21, 2023 11:02
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