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

ices/95647-2.rs: fixed with errors #1262

Merged
merged 1 commit into from
May 15, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#95647

trait Tr<'a> {
    type Assoc;
}

impl<'a> Tr<'a> for () {
    type Assoc = &'a ();
}

fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `95647_2`
 --> /home/runner/work/glacier/glacier/ices/95647-2.rs:9:57
  |
9 | fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
  |                                                         ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/95647-2.rs`

error: higher kinded lifetime bounds on nested opaque types are not supported yet
 --> /home/runner/work/glacier/glacier/ices/95647-2.rs:9:51
  |
9 | fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
  |                                                   ^^
  |
note: lifetime declared here
 --> /home/runner/work/glacier/glacier/ices/95647-2.rs:9:20
  |
9 | fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
  |                    ^^

error: aborting due to 2 previous errors

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

=== stdout ===
=== stderr ===
error[E0601]: `main` function not found in crate `95647_2`
 --> /home/runner/work/glacier/glacier/ices/95647-2.rs:9:57
  |
9 | fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
  |                                                         ^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/95647-2.rs`

error: higher kinded lifetime bounds on nested opaque types are not supported yet
 --> /home/runner/work/glacier/glacier/ices/95647-2.rs:9:51
  |
9 | fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
  |                                                   ^^
  |
note: lifetime declared here
 --> /home/runner/work/glacier/glacier/ices/95647-2.rs:9:20
  |
9 | fn g() -> impl for<'a> Tr<'a, Assoc = impl Send + 'a> {}
  |                    ^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0601`.
==============
@JohnTitor JohnTitor merged commit 5998612 into master May 15, 2022
@JohnTitor JohnTitor deleted the autofix/ices/95647-2.rs branch May 15, 2022 23:44
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