2024-02-01 05:34:38 -06:00
|
|
|
error[E0282]: type annotations needed
|
2024-10-14 12:49:31 -05:00
|
|
|
--> $DIR/recursive-coroutine-boxed.rs:14:23
|
2024-02-01 05:34:38 -06:00
|
|
|
|
|
|
|
|
LL | let mut gen = Box::pin(foo());
|
|
|
|
| ^^^^^^^^ cannot infer type of the type parameter `T` declared on the struct `Box`
|
2024-10-14 12:49:31 -05:00
|
|
|
LL |
|
2024-02-01 05:34:38 -06:00
|
|
|
LL | let mut r = gen.as_mut().resume(());
|
|
|
|
| ------ type must be known at this point
|
|
|
|
|
|
|
|
|
help: consider specifying the generic argument
|
|
|
|
|
|
|
|
|
LL | let mut gen = Box::<T>::pin(foo());
|
|
|
|
| +++++
|
|
|
|
|
2024-10-14 12:49:31 -05:00
|
|
|
error: aborting due to 1 previous error
|
2024-02-01 05:34:38 -06:00
|
|
|
|
2024-10-14 12:49:31 -05:00
|
|
|
For more information about this error, try `rustc --explain E0282`.
|