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

Commit

Permalink
ices/101665.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== stdout ===
=== stderr ===
error[E0706]: functions in traits cannot be declared `async`
 --> /home/runner/work/glacier/glacier/ices/101665.rs:7:5
  |
7 |     async fn baz()-> impl Debug{}
  |     -----^^^^^^^^^^^^^^^^^^^^^^
  |     |
  |     `async` because of this
  |
  = note: `async` trait functions are not currently supported
  = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
  = note: see issue #91611 <rust-lang/rust#91611> for more information
  = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/101665.rs:7:32
  |
7 |     async fn baz()-> impl Debug{}
  |                                ^^ expected associated type, found `()`
  |
  = note: expected associated type `impl Debug`
                   found unit type `()`

error[E0308]: mismatched types
 --> /home/runner/work/glacier/glacier/ices/101665.rs:7:32
  |
7 |     async fn baz()-> impl Debug{}
  |                                ^^ expected associated type, found opaque type
  |
  = note: expected associated type `impl Future<Output = impl Debug>` (trait associated opaque type at </home/runner/work/glacier/glacier/ices/101665.rs:7:22>)
                 found opaque type `impl Future<Output = impl Debug>` (opaque type at </rustc/f83e0266cf7aaa4b41505c49a5fd9c2363166522/library/core/src/future/mod.rs:72:43>)

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0308, E0706.
For more information about an error, try `rustc --explain E0308`.
==============
  • Loading branch information
rustbot committed Oct 4, 2022
1 parent 0c734c8 commit 4574691
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 4574691

Please sign in to comment.