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

Commit cfbc30b

Browse files
committed
ices/98604.sh: fixed with errors
=== stdout === === stderr === error[E0271]: type mismatch resolving `<fn() -> impl Future<Output = ()> {test} as FnOnce<()>>::Output == Pin<Box<(dyn Future<Output = ()> + 'static)>>` --> <anon>:10:5 | 10 | Box::new(test) as AsyncFnPtr; | ^^^^^^^^^^^^^^ expected struct `Pin`, found opaque type | note: while checking the return type of the `async fn` --> <anon>:6:17 | 6 | async fn test() {} | ^ checked the `Output` of this `async fn`, found opaque type = note: expected struct `Pin<Box<(dyn Future<Output = ()> + 'static)>>` found opaque type `impl Future<Output = ()>` = note: required for the cast from `fn() -> impl Future<Output = ()> {test}` to the object type `dyn Fn() -> Pin<Box<(dyn Future<Output = ()> + 'static)>>` error: aborting due to previous error For more information about this error, try `rustc --explain E0271`. ==============
1 parent c6f07c9 commit cfbc30b

File tree

1 file changed

+0
-0
lines changed

1 file changed

+0
-0
lines changed
File renamed without changes.

0 commit comments

Comments
 (0)