glacier icon indicating copy to clipboard operation
glacier copied to clipboard

ices/112630.rs: fixed with errors

Open github-actions[bot] opened this issue 1 year ago • 0 comments

Issue: https://github.com/rust-lang/rust/issues/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`.
==============

github-actions[bot] avatar Feb 12 '24 03:02 github-actions[bot]