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

ices/94378.rs: fixed with no errors #1286

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 8, 2022

Issue: rust-lang/rust#94378

fn f<'a, 'b, 'd, 'e> (
    x: for<'c> fn(
        fn(&'c fn(&'c ())),
        fn(&'c fn(&'c ())),
        fn(&'c fn(&'c ())),
        fn(&'c fn(&'c ())),
    )
) -> fn(
        fn(&'a fn(&'d ())),
        fn(&'b fn(&'d ())),
        fn(&'a fn(&'e ())),
        fn(&'b fn(&'e ())),
) {
    x
}

fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `f`
 --> /home/runner/work/glacier/glacier/ices/94378.rs:1:4
  |
1 | fn f<'a, 'b, 'd, 'e> (
  |    ^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: function is never used: `f`
 --> /home/runner/work/glacier/glacier/ices/94378.rs:1:4
  |
1 | fn f<'a, 'b, 'd, 'e> (
  |    ^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@JohnTitor JohnTitor self-assigned this Jun 8, 2022
@Alexendoo Alexendoo deleted the autofix/ices/94378.rs branch June 11, 2022 11:08
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