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
error[E0728]: `await` is only allowed inside `async` functions and blocks
--> tests\tests.rs:34:21
|
23 | async fn test_oauth() {
| ---------- this is not `async`
...
34 | .login()
| _____________________^
35 | | .await);
| |__________________^ only allowed inside `async` functions and blocks
error[E0728]: `await` is only allowed inside `async` functions and blocks
--> tests\tests.rs:41:28
|
23 | async fn test_oauth() {
| ---------- this is not `async`
...
41 | assert!(me.me().await.is_ok());
| ^^^^^^ only allowed inside `async` functions and blocks
error[E0277]: `Result<Me, RouxError>` is not a future
--> tests\tests.rs:34:21
|
34 | .login()
| _____________________^
35 | | .await);
| |__________________^ `Result<Me, RouxError>` is not a future
|
= help: the trait `Future` is not implemented for `Result<Me, RouxError>`
= note: Result<Me, RouxError> must be a future or must implement `IntoFuture` to be awaited
= note: required because of the requirements on the impl of `IntoFuture` for `Result<Me, RouxError>`
help: remove the `.await`
|
34 - .login()
34 + .login());
|
The text was updated successfully, but these errors were encountered:
I have the following test case:
The compiler throws the following error:
The text was updated successfully, but these errors were encountered: