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 #1123

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 9, 2022

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 merged commit 06c8426 into master Feb 9, 2022
@Alexendoo Alexendoo deleted the autofix/ices/88236.rs branch February 9, 2022 12:54
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