You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 23, 2024. It is now read-only.
=== stdout ===
=== stderr ===
error: expected one of `->`, `;`, `where`, or `{`, found `}`
--> /home/runner/work/glacier/glacier/ices/84149.rs:1:28
|
1 | trait C{async fn b(){fn a()}}
| - ^ expected one of `->`, `;`, `where`, or `{`
| |
| while parsing this `fn`
error[E0706]: functions in traits cannot be declared `async`
--> /home/runner/work/glacier/glacier/ices/84149.rs:1:9
|
1 | trait C{async fn b(){fn a()}}
| -----^^^^^^^^^^^^^^^
| |
| `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
error: free function without a body
--> /home/runner/work/glacier/glacier/ices/84149.rs:1:22
|
1 | trait C{async fn b(){fn a()}}
| ^^^^^-
| |
| help: provide a definition for the function: `{ <body> }`
error[E0601]: `main` function not found in crate `84149`
--> /home/runner/work/glacier/glacier/ices/84149.rs:1:1
|
1 | trait C{async fn b(){fn a()}}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider adding a `main` function to `/home/runner/work/glacier/glacier/ices/84149.rs`
error: aborting due to 4 previous errors
Some errors have detailed explanations: E0601, E0706.
For more information about an error, try `rustc --explain E0601`.
==============
Co-authored-by: rustbot <[email protected]>
0 commit comments