summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/opaque-ty-ffi-unsafe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/opaque-ty-ffi-unsafe.rs')
-rw-r--r--src/test/ui/lint/opaque-ty-ffi-unsafe.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/lint/opaque-ty-ffi-unsafe.rs b/src/test/ui/lint/opaque-ty-ffi-unsafe.rs
deleted file mode 100644
index b7cc38e99..000000000
--- a/src/test/ui/lint/opaque-ty-ffi-unsafe.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-#![feature(type_alias_impl_trait)]
-#![deny(improper_ctypes)]
-
-type A = impl Fn();
-
-pub fn ret_closure() -> A {
- || {}
-}
-
-extern "C" {
- pub fn a(_: A);
- //~^ ERROR `extern` block uses type `A`, which is not FFI-safe [improper_ctypes]
-}
-
-fn main() {}