about summary refs log tree commit diff
path: root/src/test/ui/unsafe/unsafe-fn-called-from-safe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unsafe/unsafe-fn-called-from-safe.rs')
-rw-r--r--src/test/ui/unsafe/unsafe-fn-called-from-safe.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/unsafe/unsafe-fn-called-from-safe.rs b/src/test/ui/unsafe/unsafe-fn-called-from-safe.rs
deleted file mode 100644
index 55072dcc6c3..00000000000
--- a/src/test/ui/unsafe/unsafe-fn-called-from-safe.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-// revisions: mir thir
-// [thir]compile-flags: -Z thir-unsafeck
-
-unsafe fn f() { return; }
-
-fn main() {
-    f();
-    //[mir]~^ ERROR call to unsafe function is unsafe
-    //[thir]~^^ ERROR call to unsafe function `f` is unsafe
-}