summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs')
-rw-r--r--src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs b/src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs
deleted file mode 100644
index 910ca3c4b..000000000
--- a/src/test/ui/consts/const-eval/no_lint_for_statically_known_error.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// check-pass
-
-// if `X` were used instead of `x`, `X - 10` would result in a lint.
-// This file should never produce a lint, no matter how the const
-// propagator is improved.
-
-#![deny(warnings)]
-
-const X: u32 = 5;
-
-fn main() {
- let x = X;
- if x > 10 {
- println!("{}", x - 10);
- } else {
- println!("{}", 10 - x);
- }
-}