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

ices/68090.rs: fixed with no errors #921

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#68090

pub fn main() {
    |_: ARef| ();
}

type ARef<'a> = &'a <() as ArrayLength>::ArrayType;

trait ArrayLength {
    type ArrayType;
}

impl ArrayLength for () {
    type ArrayType = u8;
}
=== stdout ===
=== stderr ===
warning: unused closure that must be used
 --> /home/runner/work/glacier/glacier/ices/68090.rs:2:5
  |
2 |     |_: ARef| ();
  |     ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default
  = note: closures are lazy and do nothing unless called

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: unused closure that must be used
 --> /home/runner/work/glacier/glacier/ices/68090.rs:2:5
  |
2 |     |_: ARef| ();
  |     ^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_must_use)]` on by default
  = note: closures are lazy and do nothing unless called

warning: 1 warning emitted

==============
@Alexendoo Alexendoo closed this Aug 29, 2021
@Alexendoo Alexendoo deleted the autofix/ices/68090.rs branch August 29, 2021 12:49
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