]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-101715.rs
Rollup merge of #103570 - lukas-code:stabilize-ilog, r=scottmcm
[rust.git] / src / test / ui / async-await / issue-101715.rs
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() {}