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

ices/66501.rs: fixed with no errors #461

Closed
wants to merge 1 commit into from

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 6, 2020

Issue: rust-lang/rust#66501

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

warning: 1 warning emitted

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

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

warning: 1 warning emitted

==============
@Alexendoo Alexendoo closed this Sep 7, 2020
@Alexendoo
Copy link
Member

covered in #463

@Alexendoo Alexendoo deleted the autofix/ices/66501.rs branch September 8, 2020 18:32
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