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

ices/71042.rs: fixed with errors #382

Merged
merged 1 commit into from
May 26, 2020
Merged

ices/71042.rs: fixed with errors #382

merged 1 commit into from
May 26, 2020

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#71042

#![feature(impl_trait_in_bindings)]
#![allow(incomplete_features)]

fn main() {
    const C: impl Copy = 0;
    match C {
        C | _ => {}
    }
}
=== stdout ===
=== stderr ===
error: opaque types cannot be used in patterns
 --> /home/runner/work/glacier/glacier/ices/71042.rs:7:9
  |
7 |         C | _ => {}
  |         ^

error: aborting due to previous error

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

=== stdout ===
=== stderr ===
error: opaque types cannot be used in patterns
 --> /home/runner/work/glacier/glacier/ices/71042.rs:7:9
  |
7 |         C | _ => {}
  |         ^

error: aborting due to previous error

==============
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment on the issue.

@JohnTitor JohnTitor merged commit 312aaab into master May 26, 2020
@JohnTitor JohnTitor deleted the autofix/ices/71042.rs branch May 26, 2020 14:35
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