summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-1937-termination-trait/issue-103052-2.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/rfc-1937-termination-trait/issue-103052-2.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/ui/rfc-1937-termination-trait/issue-103052-2.rs b/tests/ui/rfc-1937-termination-trait/issue-103052-2.rs
index fa9182b6d..ca5fa6df2 100644
--- a/tests/ui/rfc-1937-termination-trait/issue-103052-2.rs
+++ b/tests/ui/rfc-1937-termination-trait/issue-103052-2.rs
@@ -1,3 +1,6 @@
+// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
+// revisions: current next
+
#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]
@@ -9,7 +12,8 @@ mod child {
struct Something;
impl Main for () {
- fn main() -> Something { //~ ERROR the trait bound `Something: Termination` is not satisfied
+ fn main() -> Something {
+ //~^ ERROR the trait bound `Something: Termination` is not satisfied
Something
}
}