]>
Commit | Line | Data |
---|---|---|
f2b60f7d FG |
1 | // edition:2018 |
2 | ||
3 | struct S; | |
4 | ||
5 | impl S { | |
6 | fn very_long_method_name_the_longest_method_name_in_the_whole_universe(self) {} | |
7 | } | |
8 | ||
9 | async fn foo() { | |
10 | S.very_long_method_name_the_longest_method_name_in_the_whole_universe() | |
11 | .await | |
12 | //~^ error: `()` is not a future | |
13 | //~| help: remove the `.await` | |
14 | //~| help: the trait `Future` is not implemented for `()` | |
15 | } | |
16 | ||
17 | fn main() {} |