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

ices/68645.rs: fixed with errors #410

Merged
merged 1 commit into from
Jun 22, 2020
Merged

ices/68645.rs: fixed with errors #410

merged 1 commit into from
Jun 22, 2020

Commits on Jun 22, 2020

  1. ices/68645.rs: fixed with errors

    === stdout ===
    === stderr ===
    warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes
     --> /home/runner/work/glacier/glacier/ices/68645.rs:1:12
      |
    1 | #![feature(generic_associated_types)]
      |            ^^^^^^^^^^^^^^^^^^^^^^^^
      |
      = note: `#[warn(incomplete_features)]` on by default
      = note: see issue #44265 <rust-lang/rust#44265> for more information
    
    error[E0277]: expected a `std::ops::Fn<()>` closure, found `T`
      --> /home/runner/work/glacier/glacier/ices/68645.rs:12:5
       |
    4  |     type F<'a>: Fn() -> u32;
       |     ------------------------ required by `Fun::F`
    ...
    12 |     type F<'a> = Self;
       |     ^^^^^^^^^^^^^^^^^^ expected an `Fn<()>` closure, found `T`
       |
       = help: the trait `std::ops::Fn<()>` is not implemented for `T`
       = note: wrap the `T` in a closure with no arguments: `|| { /* code */ }
    help: consider restricting type parameter `T`
       |
    11 | impl <T: std::ops::Fn<()>> Fun for T {
       |        ^^^^^^^^^^^^^^^^^^
    
    error: aborting due to previous error; 1 warning emitted
    
    For more information about this error, try `rustc --explain E0277`.
    ==============
    rustbot committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    a8cb91c View commit details
    Browse the repository at this point in the history