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

ices/88236.rs: fixed with no errors #1200

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#88236

trait Hrtb<'a> {
    type Assoc;
}

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

fn make_impl() -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> {}

pub fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `make_impl`
 --> /home/runner/work/glacier/glacier/ices/88236.rs:9:4
  |
9 | fn make_impl() -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> {}
  |    ^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: function is never used: `make_impl`
 --> /home/runner/work/glacier/glacier/ices/88236.rs:9:4
  |
9 | fn make_impl() -> impl for<'a> Hrtb<'a, Assoc = impl Send + 'a> {}
  |    ^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo closed this in 1714f42 Mar 31, 2022
@Alexendoo Alexendoo deleted the autofix/ices/88236.rs branch March 31, 2022 21:53
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.

1 participant