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

ices/67514.rs: fixed with no errors #280

Merged
merged 1 commit into from
Feb 5, 2020
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 5, 2020

Issue: rust-lang/rust#67514

#![feature(or_patterns)]

fn foo((Some(_) | None): Option<u32>) {}

fn main() {}
=== stdout ===
=== stderr ===
warning: function is never used: `foo`
 --> /home/runner/work/glacier/glacier/ices/67514.rs:3:4
  |
3 | fn foo((Some(_) | None): Option<u32>) {}
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

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

=== stdout ===
=== stderr ===
warning: function is never used: `foo`
 --> /home/runner/work/glacier/glacier/ices/67514.rs:3:4
  |
3 | fn foo((Some(_) | None): Option<u32>) {}
  |    ^^^
  |
  = note: `#[warn(dead_code)]` on by default

==============
@JohnTitor JohnTitor merged commit 09b5788 into master Feb 5, 2020
@JohnTitor JohnTitor deleted the autofix/ices/67514.rs branch February 5, 2020 12:07
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