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

ices/59996.rs: fixed with no errors #471

Merged
merged 1 commit into from
Sep 27, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#59996

const FOO: &&&u32 = &&&42;

fn main() {
    match unimplemented!() {
        &&&42 => {},
        FOO => {},
        _ => {},
    }
}
=== stdout ===
=== stderr ===
warning: unreachable arm
 --> /home/runner/work/glacier/glacier/ices/59996.rs:5:18
  |
4 |     match unimplemented!() {
  |           ---------------- any code following this expression is unreachable
5 |         &&&42 => {},
  |                  ^^ unreachable arm
  |
  = note: `#[warn(unreachable_code)]` on by default

warning: unreachable pattern
 --> /home/runner/work/glacier/glacier/ices/59996.rs:6:9
  |
6 |         FOO => {},
  |         ^^^
  |
  = note: `#[warn(unreachable_patterns)]` on by default

warning: 2 warnings emitted

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

=== stdout ===
=== stderr ===
warning: unreachable arm
 --> /home/runner/work/glacier/glacier/ices/59996.rs:5:18
  |
4 |     match unimplemented!() {
  |           ---------------- any code following this expression is unreachable
5 |         &&&42 => {},
  |                  ^^ unreachable arm
  |
  = note: `#[warn(unreachable_code)]` on by default

warning: unreachable pattern
 --> /home/runner/work/glacier/glacier/ices/59996.rs:6:9
  |
6 |         FOO => {},
  |         ^^^
  |
  = note: `#[warn(unreachable_patterns)]` on by default

warning: 2 warnings emitted

==============
@Alexendoo Alexendoo merged commit fcf0ff5 into master Sep 27, 2020
@Alexendoo Alexendoo deleted the autofix/ices/59996.rs branch September 27, 2020 17:27
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants