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

ices/66501-2.rs: fixed with no errors #473

Merged
merged 1 commit into from
Sep 27, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#66501

fn main() {
    const CONST: &[Option<()>; 1] = &[Some(())];
    match &[Some(())] {
        &[None] => {}
        CONST => {}
        &[Some(())] => {}
    }
}
=== stdout ===
=== stderr ===
warning: unreachable pattern
 --> /home/runner/work/glacier/glacier/ices/66501-2.rs:6:9
  |
6 |         &[Some(())] => {}
  |         ^^^^^^^^^^^
  |
  = note: `#[warn(unreachable_patterns)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: unreachable pattern
 --> /home/runner/work/glacier/glacier/ices/66501-2.rs:6:9
  |
6 |         &[Some(())] => {}
  |         ^^^^^^^^^^^
  |
  = note: `#[warn(unreachable_patterns)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit c758f7f into master Sep 27, 2020
@Alexendoo Alexendoo deleted the autofix/ices/66501-2.rs branch September 27, 2020 17:27
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