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

ices/99665-2.rs: fixed with no errors #1429

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 = TableProps<M>;
}

pub struct TableProps<M>
where
    M: 'static,
{
    pub entries: M,
}

fn main() {
    |_: <&u32 as MyComponent>::Properties| {};
}
=== stdout ===
=== stderr ===
warning: unused closure that must be used
  --> /home/runner/work/glacier/glacier/ices/99665-2.rs:20:5
   |
20 |     |_: <&u32 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-2.rs:20:5
   |
20 |     |_: <&u32 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 c949f17 into master Sep 24, 2022
@JohnTitor JohnTitor deleted the autofix/ices/99665-2.rs branch September 24, 2022 09: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