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

ices/104779.rs: fixed with errors #1657

Merged
merged 1 commit into from
Oct 10, 2023
Merged

ices/104779.rs: fixed with errors #1657

merged 1 commit into from
Oct 10, 2023

Commits on Sep 1, 2023

  1. ices/104779.rs: fixed with errors

    === stdout ===
    === stderr ===
    warning: unused variable: `x`
      --> /home/runner/work/glacier/glacier/ices/104779.rs:13:28
       |
    13 |             Supertype::Var(x) => {}
       |                            ^ help: if this is intentional, prefix it with an underscore: `_x`
       |
       = note: `#[warn(unused_variables)]` on by default
    
    warning: function cannot return without recursing
      --> /home/runner/work/glacier/glacier/ices/104779.rs:9:1
       |
    9  | fn foo() -> impl Sized {
       | ^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
    10 |     loop {
    11 |         match foo() {
       |               ----- recursive call site
       |
       = help: a `loop` may express intention better if this is on purpose
       = note: `#[warn(unconditional_recursion)]` on by default
    
    error: higher-ranked subtype error
      --> /home/runner/work/glacier/glacier/ices/104779.rs:11:15
       |
    11 |         match foo() {
       |               ^^^^^
    
    error: higher-ranked subtype error
      --> /home/runner/work/glacier/glacier/ices/104779.rs:12:13
       |
    12 |             Subtype::Bar => (),
       |             ^^^^^^^^^^^^
    
    error: aborting due to 2 previous errors; 2 warnings emitted
    
    ==============
    rustbot committed Sep 1, 2023
    Configuration menu
    Copy the full SHA
    33a827b View commit details
    Browse the repository at this point in the history