summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-fn-ptr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-fn-ptr.rs')
-rw-r--r--src/test/ui/consts/const-fn-ptr.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/consts/const-fn-ptr.rs b/src/test/ui/consts/const-fn-ptr.rs
deleted file mode 100644
index b1befdf06..000000000
--- a/src/test/ui/consts/const-fn-ptr.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-const fn make_fn_ptr() -> fn() {
- || {}
-}
-
-static STAT: () = make_fn_ptr()();
-//~^ ERROR function pointer
-
-const CONST: () = make_fn_ptr()();
-//~^ ERROR function pointer
-
-const fn call_ptr() {
- make_fn_ptr()();
- //~^ ERROR function pointer
-}
-
-fn main() {}