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

ices/100103.rs: fixed with no errors #1377

Merged
merged 1 commit into from
Aug 7, 2022
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 7, 2022

Issue: rust-lang/rust#100103

#![feature(let_else)]
fn main() {
    let Some(x) = Some(()) else {
        match Err(()) {
            Err(()) => return (),
            Ok(val) => val,
        }
    };
}
=== stdout ===
=== stderr ===
warning: unused variable: `x`
 --> /home/runner/work/glacier/glacier/ices/100103.rs:3:14
  |
3 |     let Some(x) = Some(()) else {
  |              ^ help: if this is intentional, prefix it with an underscore: `_x`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: 1 warning emitted

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

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

warning: 1 warning emitted

==============
@JohnTitor JohnTitor merged commit 5290485 into master Aug 7, 2022
@JohnTitor JohnTitor deleted the autofix/ices/100103.rs branch August 7, 2022 05:51
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