]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/issue-101715.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / async-await / issue-101715.rs
CommitLineData
f2b60f7d
FG
1// edition:2018
2
3struct S;
4
5impl S {
6 fn very_long_method_name_the_longest_method_name_in_the_whole_universe(self) {}
7}
8
9async 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
17fn main() {}