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

ices/112630.rs: fixed with errors #1713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#112630

enum Foo {
    Bar(B),
}

fn main() {
    let _ = [0u32; Foo::Bar as usize];
}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `B` in this scope
 --> /home/runner/work/glacier/glacier/ices/112630.rs:2:9
  |
2 |     Bar(B),
  |         ^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | enum Foo<B> {
  |         +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0412`.
==============

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `B` in this scope
 --> /home/runner/work/glacier/glacier/ices/112630.rs:2:9
  |
2 |     Bar(B),
  |         ^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | enum Foo<B> {
  |         +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0412`.
==============
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.

1 participant