summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/edition-deny-async-fns-2015.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/async-await/edition-deny-async-fns-2015.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/async-await/edition-deny-async-fns-2015.rs b/tests/ui/async-await/edition-deny-async-fns-2015.rs
index 6bd6d879a..d4c30dc9d 100644
--- a/tests/ui/async-await/edition-deny-async-fns-2015.rs
+++ b/tests/ui/async-await/edition-deny-async-fns-2015.rs
@@ -1,4 +1,6 @@
// edition:2015
+// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
+// revisions: current next
async fn foo() {} //~ ERROR `async fn` is not permitted in Rust 2015