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

ices/76168.rs: fixed with no errors #1028

Merged
merged 1 commit into from
Dec 4, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 4, 2021

Issue: rust-lang/rust#76168

trait Trait<Input> {
    type Output;
}

async fn walk<F: 'static>(filter: F)
where
    for<'a> F: Trait<&'a u32> + 'a,
    for<'a> <F as Trait<&'a u32>>::Output: 'a,
{
}

fn main() {}
=== stdout ===
=== stderr ===
warning: unused variable: `filter`
 --> /home/runner/work/glacier/glacier/ices/76168.rs:5:27
  |
5 | async fn walk<F: 'static>(filter: F)
  |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: function is never used: `walk`
 --> /home/runner/work/glacier/glacier/ices/76168.rs:5:10
  |
5 | async fn walk<F: 'static>(filter: F)
  |          ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: unused variable: `filter`
 --> /home/runner/work/glacier/glacier/ices/76168.rs:5:27
  |
5 | async fn walk<F: 'static>(filter: F)
  |                           ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: function is never used: `walk`
 --> /home/runner/work/glacier/glacier/ices/76168.rs:5:10
  |
5 | async fn walk<F: 'static>(filter: F)
  |          ^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit d3d8bf2 into master Dec 4, 2021
@Alexendoo Alexendoo deleted the autofix/ices/76168.rs branch December 4, 2021 14:01
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