summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/const-len-underflow-separate-spans.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-len-underflow-separate-spans.rs')
-rw-r--r--tests/ui/consts/const-len-underflow-separate-spans.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/consts/const-len-underflow-separate-spans.rs b/tests/ui/consts/const-len-underflow-separate-spans.rs
index 4544c8876..55704b641 100644
--- a/tests/ui/consts/const-len-underflow-separate-spans.rs
+++ b/tests/ui/consts/const-len-underflow-separate-spans.rs
@@ -2,6 +2,9 @@
// spot (where the underflow occurred), while also providing the
// overall context for what caused the evaluation.
+// revisions: old next
+//[next] compile-flags: -Ztrait-solver=next
+
const ONE: usize = 1;
const TWO: usize = 2;
const LEN: usize = ONE - TWO;