about summary refs log tree commit diff
path: root/src/test/compile-fail/const-recursive.rs
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-02-03 21:15:00 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-02-10 00:29:11 +0100
commitae46434b7936d1f1d71cb92c45ddcf936ec0eb24 (patch)
tree7e47ee934f8bb760bd3ed3a114c70cdc29235d2c /src/test/compile-fail/const-recursive.rs
parent3bcda48a30b21e46b81a7989deb30a3ba85fb918 (diff)
downloadrust-ae46434b7936d1f1d71cb92c45ddcf936ec0eb24.tar.gz
rust-ae46434b7936d1f1d71cb92c45ddcf936ec0eb24.zip
Remove "static item recursion checking" in favor of relying on cycle checks in the query engine
Diffstat (limited to 'src/test/compile-fail/const-recursive.rs')
-rw-r--r--src/test/compile-fail/const-recursive.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/compile-fail/const-recursive.rs b/src/test/compile-fail/const-recursive.rs
deleted file mode 100644
index 7c05a817243..00000000000
--- a/src/test/compile-fail/const-recursive.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-const a: isize = b; //~ ERROR recursive constant
-const b: isize = a; //~ ERROR recursive constant
-
-fn main() {
-}