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

ices/96572-2.rs: fixed with no errors #1422

Merged
merged 1 commit into from
Sep 22, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#96572

#![feature(type_alias_impl_trait)]

fn main() {
    type T = impl Copy;
    let foo: T = Some((1u32, 2u32));
    match foo {
        None => (),
        Some((a, b)) => (),
    }
}
=== stdout ===
=== stderr ===
warning: unused variable: `a`
 --> /home/runner/work/glacier/glacier/ices/96572-2.rs:8:15
  |
8 |         Some((a, b)) => (),
  |               ^ help: if this is intentional, prefix it with an underscore: `_a`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `b`
 --> /home/runner/work/glacier/glacier/ices/96572-2.rs:8:18
  |
8 |         Some((a, b)) => (),
  |                  ^ help: if this is intentional, prefix it with an underscore: `_b`

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: unused variable: `a`
 --> /home/runner/work/glacier/glacier/ices/96572-2.rs:8:15
  |
8 |         Some((a, b)) => (),
  |               ^ help: if this is intentional, prefix it with an underscore: `_a`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `b`
 --> /home/runner/work/glacier/glacier/ices/96572-2.rs:8:18
  |
8 |         Some((a, b)) => (),
  |                  ^ help: if this is intentional, prefix it with an underscore: `_b`

warning: 2 warnings emitted

==============
@JohnTitor JohnTitor merged commit b1325f3 into master Sep 22, 2022
@JohnTitor JohnTitor deleted the autofix/ices/96572-2.rs branch September 22, 2022 10:48
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