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

ices/99665-1.rs: fixed with no errors #1428

Merged
merged 1 commit into from
Sep 24, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#99665

pub trait MyComponent {
    type Properties;
}

impl<M> MyComponent for M
where
    M: 'static,
{
    type Properties = ();
}

fn main() {
    |_: <&u8 as MyComponent>::Properties| {};
}
=== stdout ===
=== stderr ===
warning: unused closure that must be used
  --> /home/runner/work/glacier/glacier/ices/99665-1.rs:13:5
   |
13 |     |_: <&u8 as MyComponent>::Properties| {};
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = 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/99665-1.rs:13:5
   |
13 |     |_: <&u8 as MyComponent>::Properties| {};
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_must_use)]` on by default
   = note: closures are lazy and do nothing unless called

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 8be7ad5 into master Sep 24, 2022
@JohnTitor JohnTitor deleted the autofix/ices/99665-1.rs branch September 24, 2022 09:07
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