summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs')
-rw-r--r--src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs b/src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs
deleted file mode 100644
index eccda49db..000000000
--- a/src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-#![feature(const_extern_fn)]
-
-extern "C" {
- fn regular_in_block();
-}
-
-const extern "C" fn bar() {
- unsafe {
- regular_in_block();
- //~^ ERROR: cannot call non-const fn
- }
-}
-
-extern "C" fn regular() {}
-
-const extern "C" fn foo() {
- unsafe {
- regular();
- //~^ ERROR: cannot call non-const fn
- }
-}
-
-fn main() {}