summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs')
-rw-r--r--src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs b/src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs
deleted file mode 100644
index 629d1f02a..000000000
--- a/src/test/ui/consts/const_limit/const_eval_limit_not_reached.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-// check-pass
-
-#![feature(const_eval_limit)]
-
-// This needs to be higher than the number of loop iterations since each pass through the loop may
-// hit more than one terminator.
-#![const_eval_limit="4000"]
-
-const X: usize = {
- let mut x = 0;
- while x != 1000 {
- x += 1;
- }
-
- x
-};
-
-fn main() {
- assert_eq!(X, 1000);
-}