Skip to content

Commit

Permalink
ices/109281.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/109281.rs:6:19
  |
3 | type ReturnType<'a> = impl Eq + 'a;
  |                       ------------ the expected opaque type
...
6 |     fn deref() -> &'static Self::Target {}
  |        -----      ^^^^^^^^^^^^^^^^^^^^^ expected `&dyn Fn(&()) -> ReturnType<'_>`, found `()`
  |        |
  |        implicitly returns `()` as its body has no tail or `return` expression
  |
  = note: expected reference `&'static (dyn for<'a> Fn(&'a ()) -> ReturnType<'_> + 'static)`
             found unit type `()`

error[E0186]: method `deref` has a `&self` declaration in the trait, but not in the impl
 --> /home/runner/work/glacier/glacier/ices/109281.rs:6:5
  |
6 |     fn deref() -> &'static Self::Target {}
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&self` in impl
  |
  = note: `deref` from trait: `fn(&Self) -> &<Self as Deref>::Target`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0186, E0308.
For more information about an error, try `rustc --explain E0186`.
==============
  • Loading branch information
rustbot committed Aug 7, 2023
1 parent 9bcaa67 commit 44ca0ed
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 44ca0ed

Please sign in to comment.