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

ices/69487-3.rs: fixed with errors #1212

Merged
merged 1 commit into from
Apr 12, 2022
Merged

Commits on Apr 12, 2022

  1. ices/69487-3.rs: fixed with errors

    === stdout ===
    === stderr ===
    error[E0308]: mismatched types
     --> /home/runner/work/glacier/glacier/ices/69487-3.rs:2:16
      |
    2 |     [9; || [9; []]];
      |                ^^ expected `usize`, found array of 0 elements
      |
      = note: expected type `usize`
                found array `[_; 0]`
    
    error[E0080]: it is undefined behavior to use this value
     --> /home/runner/work/glacier/glacier/ices/69487-3.rs:2:9
      |
    2 |     [9; || [9; []]];
      |         ^^^^^^^^^^ type validation failed: encountered uninitialized bytes, but expected initialized plain (non-pointer) bytes
      |
      = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
      = note: the raw bytes of the constant (size: 8, align: 8) {
                  __ __ __ __ __ __ __ __                         │ ░░░░░░░░
              }
    
    error: aborting due to 2 previous errors
    
    Some errors have detailed explanations: E0080, E0308.
    For more information about an error, try `rustc --explain E0080`.
    ==============
    rustbot committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    0e98920 View commit details
    Browse the repository at this point in the history