summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-call.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-call.rs')
-rw-r--r--src/test/ui/consts/const-call.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/consts/const-call.rs b/src/test/ui/consts/const-call.rs
deleted file mode 100644
index 28e89559f..000000000
--- a/src/test/ui/consts/const-call.rs
+++ /dev/null
@@ -1,8 +0,0 @@
-fn f(x: usize) -> usize {
- x
-}
-
-fn main() {
- let _ = [0; f(2)];
- //~^ ERROR cannot call non-const fn
-}