@@ -2,113 +2,91 @@ error: incorrect use of `await`
22 --> $DIR/incorrect-syntax-suggestions.rs:10:13
33 |
44LL | let _ = await bar();
5- | ^^^^^------
6- | |
7- | help: `await` is not a statement: `bar().await`
5+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
86
97error: incorrect use of `await`
108 --> $DIR/incorrect-syntax-suggestions.rs:14:13
119 |
1210LL | let _ = await? bar();
13- | ^^^^^-------
14- | |
15- | help: `await` is not a statement: `bar().await?`
11+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar().await?`
1612
1713error: incorrect use of `await`
1814 --> $DIR/incorrect-syntax-suggestions.rs:18:13
1915 |
2016LL | let _ = await bar()?;
21- | ^^^^^-------
22- | |
23- | help: `await` is not a statement: `bar()?.await`
17+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar()?.await`
2418
2519error: incorrect use of `await`
2620 --> $DIR/incorrect-syntax-suggestions.rs:23:13
2721 |
2822LL | let _ = await { bar() };
29- | ^^^^^----------
30- | |
31- | help: `await` is not a statement: `{ bar() }.await`
23+ | ^^^^^^^^^^^^^^^ help: `await` is not a statement: `{ bar() }.await`
3224
3325error: incorrect use of `await`
3426 --> $DIR/incorrect-syntax-suggestions.rs:27:13
3527 |
3628LL | let _ = await(bar());
37- | ^^^^^-------
38- | |
39- | help: `await` is not a statement: `(bar()).await`
29+ | ^^^^^^^^^^^^ help: `await` is not a statement: `(bar()).await`
4030
4131error: incorrect use of `await`
4232 --> $DIR/incorrect-syntax-suggestions.rs:31:13
4333 |
4434LL | let _ = await { bar() }?;
45- | ^^^^^----------
46- | |
47- | help: `await` is not a statement: `{ bar() }.await`
35+ | ^^^^^^^^^^^^^^^ help: `await` is not a statement: `{ bar() }.await`
4836
4937error: incorrect use of `await`
5038 --> $DIR/incorrect-syntax-suggestions.rs:35:14
5139 |
5240LL | let _ = (await bar())?;
53- | ^^^^^------
54- | |
55- | help: `await` is not a statement: `bar().await`
41+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
5642
5743error: incorrect use of `await`
58- --> $DIR/incorrect-syntax-suggestions.rs:39:13
44+ --> $DIR/incorrect-syntax-suggestions.rs:39:24
5945 |
6046LL | let _ = bar().await();
61- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
47+ | ^^ help: `await` is not a method call, remove the parentheses
6248
6349error: incorrect use of `await`
64- --> $DIR/incorrect-syntax-suggestions.rs:43:13
50+ --> $DIR/incorrect-syntax-suggestions.rs:43:24
6551 |
6652LL | let _ = bar().await()?;
67- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
53+ | ^^ help: `await` is not a method call, remove the parentheses
6854
6955error: incorrect use of `await`
7056 --> $DIR/incorrect-syntax-suggestions.rs:55:13
7157 |
7258LL | let _ = await bar();
73- | ^^^^^------
74- | |
75- | help: `await` is not a statement: `bar().await`
59+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
7660
7761error: incorrect use of `await`
7862 --> $DIR/incorrect-syntax-suggestions.rs:60:13
7963 |
8064LL | let _ = await? bar();
81- | ^^^^^-------
82- | |
83- | help: `await` is not a statement: `bar().await?`
65+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar().await?`
8466
8567error: incorrect use of `await`
8668 --> $DIR/incorrect-syntax-suggestions.rs:65:13
8769 |
8870LL | let _ = await bar()?;
89- | ^^^^^-------
90- | |
91- | help: `await` is not a statement: `bar()?.await`
71+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar()?.await`
9272
9373error: incorrect use of `await`
9474 --> $DIR/incorrect-syntax-suggestions.rs:70:14
9575 |
9676LL | let _ = (await bar())?;
97- | ^^^^^------
98- | |
99- | help: `await` is not a statement: `bar().await`
77+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
10078
10179error: incorrect use of `await`
102- --> $DIR/incorrect-syntax-suggestions.rs:75:13
80+ --> $DIR/incorrect-syntax-suggestions.rs:75:24
10381 |
10482LL | let _ = bar().await();
105- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
83+ | ^^ help: `await` is not a method call, remove the parentheses
10684
10785error: incorrect use of `await`
108- --> $DIR/incorrect-syntax-suggestions.rs:80:13
86+ --> $DIR/incorrect-syntax-suggestions.rs:80:24
10987 |
11088LL | let _ = bar().await()?;
111- | ^^^^^^^^^^^-- help: `await` is not a method call, remove the parentheses
89+ | ^^ help: `await` is not a method call, remove the parentheses
11290
11391error[E0728]: `await` is only allowed inside `async` functions and blocks
11492 --> $DIR/incorrect-syntax-suggestions.rs:55:13
0 commit comments