summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-ctypes-66202.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/lint/lint-ctypes-66202.rs')
-rw-r--r--src/test/ui/lint/lint-ctypes-66202.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/lint/lint-ctypes-66202.rs b/src/test/ui/lint/lint-ctypes-66202.rs
deleted file mode 100644
index ebab41d14..000000000
--- a/src/test/ui/lint/lint-ctypes-66202.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-// check-pass
-
-#![deny(improper_ctypes)]
-
-// This test checks that return types are normalized before being checked for FFI-safety, and that
-// transparent newtype wrappers are FFI-safe if the type being wrapped is FFI-safe.
-
-#[repr(transparent)]
-pub struct W<T>(T);
-
-extern "C" {
- pub fn bare() -> ();
- pub fn normalize() -> <() as ToOwned>::Owned;
- pub fn transparent() -> W<()>;
-}
-
-fn main() {}