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

ices/66580.rs: fixed with no errors #219

Merged
merged 1 commit into from
Dec 5, 2019
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 5, 2019

Issue: rust-lang/rust#66580

#![feature(type_alias_impl_trait)]

type Closure = impl FnOnce();

fn closure() -> Closure {
    || {}
}

struct Wrap<T> { f: T }

impl Wrap<Closure> {}

impl<T> Wrap<T> {}

fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `closure`
 --> /home/runner/work/glacier/glacier/ices/66580.rs:5:4
  |
5 | fn closure() -> Closure {
  |    ^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: struct is never constructed: `Wrap`
 --> /home/runner/work/glacier/glacier/ices/66580.rs:9:8
  |
9 | struct Wrap<T> { f: T }
  |        ^^^^

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

=== stdout ===
=== stderr ===
warning: function is never used: `closure`
 --> /home/runner/work/glacier/glacier/ices/66580.rs:5:4
  |
5 | fn closure() -> Closure {
  |    ^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

warning: struct is never constructed: `Wrap`
 --> /home/runner/work/glacier/glacier/ices/66580.rs:9:8
  |
9 | struct Wrap<T> { f: T }
  |        ^^^^

==============
@Alexendoo Alexendoo merged commit c86bcca into master Dec 5, 2019
@Alexendoo Alexendoo deleted the autofix/ices/66580.rs branch December 5, 2019 12:31
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