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

ices/95647-1.rs: fixed with errors #1261

Merged
merged 1 commit into from
May 15, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#95647

trait Tr<T> {
    type Output;
}

impl<T> Tr<T> for () {
    type Output = T;
}

fn g() -> impl for<'a> Tr<&'a u8, Output = impl std::fmt::Debug + 'a> { }

pub fn main() {}
=== stdout ===
=== stderr ===
error: higher kinded lifetime bounds on nested opaque types are not supported yet
 --> /home/runner/work/glacier/glacier/ices/95647-1.rs:9:67
  |
9 | fn g() -> impl for<'a> Tr<&'a u8, Output = impl std::fmt::Debug + 'a> { }
  |                                                                   ^^
  |
note: lifetime declared here
 --> /home/runner/work/glacier/glacier/ices/95647-1.rs:9:20
  |
9 | fn g() -> impl for<'a> Tr<&'a u8, Output = impl std::fmt::Debug + 'a> { }
  |                    ^^

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error: higher kinded lifetime bounds on nested opaque types are not supported yet
 --> /home/runner/work/glacier/glacier/ices/95647-1.rs:9:67
  |
9 | fn g() -> impl for<'a> Tr<&'a u8, Output = impl std::fmt::Debug + 'a> { }
  |                                                                   ^^
  |
note: lifetime declared here
 --> /home/runner/work/glacier/glacier/ices/95647-1.rs:9:20
  |
9 | fn g() -> impl for<'a> Tr<&'a u8, Output = impl std::fmt::Debug + 'a> { }
  |                    ^^

error: aborting due to previous error

==============
@JohnTitor JohnTitor merged commit 187fd55 into master May 15, 2022
@JohnTitor JohnTitor deleted the autofix/ices/95647-1.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