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

ices/83737.rs: fixed with no errors #715

Merged
merged 1 commit into from
Apr 11, 2021
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#83737

#![crate_type = "rlib"]

use core::future::Future;

async fn handle<F>(slf: &F)
where
    F: Fn(&()) -> &mut (dyn Future<Output = ()> + Unpin),
{
    (slf)(&()).await;
}
=== stdout ===
=== stderr ===
warning: function is never used: `handle`
 --> /home/runner/work/glacier/glacier/ices/83737.rs:5:10
  |
5 | async fn handle<F>(slf: &F)
  |          ^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: function is never used: `handle`
 --> /home/runner/work/glacier/glacier/ices/83737.rs:5:10
  |
5 | async fn handle<F>(slf: &F)
  |          ^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit f02ad16 into master Apr 11, 2021
@JohnTitor JohnTitor deleted the autofix/ices/83737.rs branch April 11, 2021 16:37
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