@@ -2,113 +2,91 @@ error: incorrect use of `await`
2
2
--> $DIR/incorrect-syntax-suggestions.rs:10:13
3
3
|
4
4
LL | let _ = await bar();
5
- | ^^^^^------
6
- | |
7
- | help: `await` is not a statement: `bar().await`
5
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
8
6
9
7
error: incorrect use of `await`
10
8
--> $DIR/incorrect-syntax-suggestions.rs:14:13
11
9
|
12
10
LL | let _ = await? bar();
13
- | ^^^^^-------
14
- | |
15
- | help: `await` is not a statement: `bar().await?`
11
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar().await?`
16
12
17
13
error: incorrect use of `await`
18
14
--> $DIR/incorrect-syntax-suggestions.rs:18:13
19
15
|
20
16
LL | let _ = await bar()?;
21
- | ^^^^^-------
22
- | |
23
- | help: `await` is not a statement: `bar()?.await`
17
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar()?.await`
24
18
25
19
error: incorrect use of `await`
26
20
--> $DIR/incorrect-syntax-suggestions.rs:23:13
27
21
|
28
22
LL | let _ = await { bar() };
29
- | ^^^^^----------
30
- | |
31
- | help: `await` is not a statement: `{ bar() }.await`
23
+ | ^^^^^^^^^^^^^^^ help: `await` is not a statement: `{ bar() }.await`
32
24
33
25
error: incorrect use of `await`
34
26
--> $DIR/incorrect-syntax-suggestions.rs:27:13
35
27
|
36
28
LL | let _ = await(bar());
37
- | ^^^^^-------
38
- | |
39
- | help: `await` is not a statement: `(bar()).await`
29
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `(bar()).await`
40
30
41
31
error: incorrect use of `await`
42
32
--> $DIR/incorrect-syntax-suggestions.rs:31:13
43
33
|
44
34
LL | let _ = await { bar() }?;
45
- | ^^^^^----------
46
- | |
47
- | help: `await` is not a statement: `{ bar() }.await`
35
+ | ^^^^^^^^^^^^^^^ help: `await` is not a statement: `{ bar() }.await`
48
36
49
37
error: incorrect use of `await`
50
38
--> $DIR/incorrect-syntax-suggestions.rs:35:14
51
39
|
52
40
LL | let _ = (await bar())?;
53
- | ^^^^^------
54
- | |
55
- | help: `await` is not a statement: `bar().await`
41
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
56
42
57
43
error: incorrect use of `await`
58
- --> $DIR/incorrect-syntax-suggestions.rs:39:13
44
+ --> $DIR/incorrect-syntax-suggestions.rs:39:24
59
45
|
60
46
LL | 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
62
48
63
49
error: incorrect use of `await`
64
- --> $DIR/incorrect-syntax-suggestions.rs:43:13
50
+ --> $DIR/incorrect-syntax-suggestions.rs:43:24
65
51
|
66
52
LL | 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
68
54
69
55
error: incorrect use of `await`
70
56
--> $DIR/incorrect-syntax-suggestions.rs:55:13
71
57
|
72
58
LL | let _ = await bar();
73
- | ^^^^^------
74
- | |
75
- | help: `await` is not a statement: `bar().await`
59
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
76
60
77
61
error: incorrect use of `await`
78
62
--> $DIR/incorrect-syntax-suggestions.rs:60:13
79
63
|
80
64
LL | let _ = await? bar();
81
- | ^^^^^-------
82
- | |
83
- | help: `await` is not a statement: `bar().await?`
65
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar().await?`
84
66
85
67
error: incorrect use of `await`
86
68
--> $DIR/incorrect-syntax-suggestions.rs:65:13
87
69
|
88
70
LL | let _ = await bar()?;
89
- | ^^^^^-------
90
- | |
91
- | help: `await` is not a statement: `bar()?.await`
71
+ | ^^^^^^^^^^^^ help: `await` is not a statement: `bar()?.await`
92
72
93
73
error: incorrect use of `await`
94
74
--> $DIR/incorrect-syntax-suggestions.rs:70:14
95
75
|
96
76
LL | let _ = (await bar())?;
97
- | ^^^^^------
98
- | |
99
- | help: `await` is not a statement: `bar().await`
77
+ | ^^^^^^^^^^^ help: `await` is not a statement: `bar().await`
100
78
101
79
error: incorrect use of `await`
102
- --> $DIR/incorrect-syntax-suggestions.rs:75:13
80
+ --> $DIR/incorrect-syntax-suggestions.rs:75:24
103
81
|
104
82
LL | 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
106
84
107
85
error: incorrect use of `await`
108
- --> $DIR/incorrect-syntax-suggestions.rs:80:13
86
+ --> $DIR/incorrect-syntax-suggestions.rs:80:24
109
87
|
110
88
LL | 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
112
90
113
91
error[E0728]: `await` is only allowed inside `async` functions and blocks
114
92
--> $DIR/incorrect-syntax-suggestions.rs:55:13
0 commit comments