about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs')
-rw-r--r--tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs b/tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs
new file mode 100644
index 00000000000..6436787b665
--- /dev/null
+++ b/tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs
@@ -0,0 +1,10 @@
+// check-pass
+// Make sure that we don't eagerly recover `async ::Bound` in edition 2015.
+
+mod async {
+    pub trait Foo {}
+}
+
+fn test(x: impl async ::Foo) {}
+
+fn main() {}