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

ices/72680.rs: fixed with no errors #545

Merged
merged 1 commit into from
Nov 16, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#72680

#![feature(or_patterns)]

fn f(s: &str, num: usize) {
    match (s, num) {
        ("", 0) | ("a" | "b", 1) => (),
        _ => (),
    }
}

fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `f`
 --> /home/runner/work/glacier/glacier/ices/72680.rs:3:4
  |
3 | fn f(s: &str, num: usize) {
  |    ^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

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

=== stdout ===
=== stderr ===
warning: function is never used: `f`
 --> /home/runner/work/glacier/glacier/ices/72680.rs:3:4
  |
3 | fn f(s: &str, num: usize) {
  |    ^
  |
  = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

==============
@Alexendoo Alexendoo merged commit 649bb84 into master Nov 16, 2020
@Alexendoo Alexendoo deleted the autofix/ices/72680.rs branch November 16, 2020 15:40
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