summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-101715.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/issue-101715.rs')
-rw-r--r--tests/ui/async-await/issue-101715.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/async-await/issue-101715.rs b/tests/ui/async-await/issue-101715.rs
new file mode 100644
index 000000000..1be5d0248
--- /dev/null
+++ b/tests/ui/async-await/issue-101715.rs
@@ -0,0 +1,17 @@
+// edition:2018
+
+struct S;
+
+impl S {
+ fn very_long_method_name_the_longest_method_name_in_the_whole_universe(self) {}
+}
+
+async fn foo() {
+ S.very_long_method_name_the_longest_method_name_in_the_whole_universe()
+ .await
+ //~^ error: `()` is not a future
+ //~| help: remove the `.await`
+ //~| help: the trait `Future` is not implemented for `()`
+}
+
+fn main() {}