--> $DIR/incorrect-syntax-suggestions.rs:10:13
|
LL | let _ = await bar();
- | ^^^^^------
- | |
- | help: `await` is not a statement: `bar().await`
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:14:13
|
LL | let _ = await? bar();
- | ^^^^^-------
- | |
- | help: `await` is not a statement: `bar().await?`
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar().await?`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:18:13
|
LL | let _ = await bar()?;
- | ^^^^^-------
- | |
- | help: `await` is not a statement: `bar()?.await`
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar()?.await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:23:13
|
LL | let _ = await { bar() };
- | ^^^^^----------
- | |
- | help: `await` is not a statement: `{ bar() }.await`
+ | ^^^^^^^^^^^^^^^ help: `await` is not a statement: `{ bar() }.await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:27:13
|
LL | let _ = await(bar());
- | ^^^^^-------
- | |
- | help: `await` is not a statement: `(bar()).await`
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `(bar()).await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:31:13
|
LL | let _ = await { bar() }?;
- | ^^^^^----------
- | |
- | help: `await` is not a statement: `{ bar() }.await`
+ | ^^^^^^^^^^^^^^^ help: `await` is not a statement: `{ bar() }.await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:35:14
|
LL | let _ = (await bar())?;
- | ^^^^^------
- | |
- | help: `await` is not a statement: `bar().await`
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
error: incorrect use of `await`
- --> $DIR/incorrect-syntax-suggestions.rs:39:13
+ --> $DIR/incorrect-syntax-suggestions.rs:39:24
|
LL | let _ = bar().await();
- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
+ | ^^ help: `await` is not a method call, remove the parentheses
error: incorrect use of `await`
- --> $DIR/incorrect-syntax-suggestions.rs:43:13
+ --> $DIR/incorrect-syntax-suggestions.rs:43:24
|
LL | let _ = bar().await()?;
- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
+ | ^^ help: `await` is not a method call, remove the parentheses
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:55:13
|
LL | let _ = await bar();
- | ^^^^^------
- | |
- | help: `await` is not a statement: `bar().await`
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:60:13
|
LL | let _ = await? bar();
- | ^^^^^-------
- | |
- | help: `await` is not a statement: `bar().await?`
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar().await?`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:65:13
|
LL | let _ = await bar()?;
- | ^^^^^-------
- | |
- | help: `await` is not a statement: `bar()?.await`
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar()?.await`
error: incorrect use of `await`
--> $DIR/incorrect-syntax-suggestions.rs:70:14
|
LL | let _ = (await bar())?;
- | ^^^^^------
- | |
- | help: `await` is not a statement: `bar().await`
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
error: incorrect use of `await`
- --> $DIR/incorrect-syntax-suggestions.rs:75:13
+ --> $DIR/incorrect-syntax-suggestions.rs:75:24
|
LL | let _ = bar().await();
- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
+ | ^^ help: `await` is not a method call, remove the parentheses
error: incorrect use of `await`
- --> $DIR/incorrect-syntax-suggestions.rs:80:13
+ --> $DIR/incorrect-syntax-suggestions.rs:80:24
|
LL | let _ = bar().await()?;
- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
+ | ^^ help: `await` is not a method call, remove the parentheses
error[E0728]: `await` is only allowed inside `async` functions and blocks
--> $DIR/incorrect-syntax-suggestions.rs:55:13