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

ices/99363.rs: fixed with no errors #1640

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 5, 2023

Issue: rust-lang/rust#99363

#![feature(type_alias_impl_trait)]

#[derive(Copy, Clone)]
struct Foo((u32, u32));

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

warning: unused variable: `a`
  --> /home/runner/work/glacier/glacier/ices/99363.rs:10:18
   |
10 |         let Foo((a, b)) = foo;
   |                  ^ help: if this is intentional, prefix it with an underscore: `_a`

warning: unused variable: `b`
  --> /home/runner/work/glacier/glacier/ices/99363.rs:10:21
   |
10 |         let Foo((a, b)) = foo;
   |                     ^ help: if this is intentional, prefix it with an underscore: `_b`

warning: 3 warnings emitted

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

=== stdout ===
=== stderr ===
warning: unused variable: `x`
 --> /home/runner/work/glacier/glacier/ices/99363.rs:9:9
  |
9 |     let x = move || {
  |         ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `a`
  --> /home/runner/work/glacier/glacier/ices/99363.rs:10:18
   |
10 |         let Foo((a, b)) = foo;
   |                  ^ help: if this is intentional, prefix it with an underscore: `_a`

warning: unused variable: `b`
  --> /home/runner/work/glacier/glacier/ices/99363.rs:10:21
   |
10 |         let Foo((a, b)) = foo;
   |                     ^ help: if this is intentional, prefix it with an underscore: `_b`

warning: 3 warnings emitted

==============
@JohnTitor JohnTitor merged commit 2f50d33 into master Oct 15, 2023
@JohnTitor JohnTitor deleted the autofix/ices/99363.rs branch October 15, 2023 03:01
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