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

ices/109059.rs: fixed with errors #1597

Merged
merged 1 commit into from
Jun 4, 2023
Merged

Commits on Jun 3, 2023

  1. ices/109059.rs: fixed with errors

    === stdout ===
    === stderr ===
    error[E0741]: `&'static S` can't be used as a const parameter type
     --> /home/runner/work/glacier/glacier/ices/109059.rs:8:18
      |
    8 | trait T<const C: &'static S> {}
      |                  ^^^^^^^^^^
      |
      = note: `S` must implement `ConstParamTy`, but it does not
    
    error[E0741]: `&'static S` can't be used as a const parameter type
      --> /home/runner/work/glacier/glacier/ices/109059.rs:10:17
       |
    10 | fn foo<const C: &'static S>(t: impl T<C>) -> impl T<C> {
       |                 ^^^^^^^^^^
       |
       = note: `S` must implement `ConstParamTy`, but it does not
    
    error: aborting due to 2 previous errors
    
    For more information about this error, try `rustc --explain E0741`.
    ==============
    rustbot committed Jun 3, 2023
    Configuration menu
    Copy the full SHA
    7e03ed6 View commit details
    Browse the repository at this point in the history