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

ices/96512.sh: fixed with no errors #1289

Merged
merged 1 commit into from
Jun 8, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

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

Issue: rust-lang/rust#96512

#!/bin/sh

rustc --edition=2021 - << EOF

struct Struct;
enum Enum { Variant(Struct) }
fn main() {
    let _enum = Enum::Variant(Struct);
    || {
        let Enum::Variant(_value) = _enum;
    };
}

EOF
=== stdout ===
=== stderr ===
warning: unused closure that must be used
 --> <anon>:6:5
  |
6 | /     || {
7 | |         let Enum::Variant(_value) = _enum;
8 | |     };
  | |______^
  |
  = 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
 --> <anon>:6:5
  |
6 | /     || {
7 | |         let Enum::Variant(_value) = _enum;
8 | |     };
  | |______^
  |
  = 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 73d04f7 into master Jun 8, 2022
@JohnTitor JohnTitor deleted the autofix/ices/96512.sh branch June 8, 2022 10:57
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