about summary refs log tree commit diff
path: root/tests/ui/unsafe/unsafe-fn-called-from-safe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsafe/unsafe-fn-called-from-safe.rs')
-rw-r--r--tests/ui/unsafe/unsafe-fn-called-from-safe.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/unsafe/unsafe-fn-called-from-safe.rs b/tests/ui/unsafe/unsafe-fn-called-from-safe.rs
index 1836629958a..758b80097f7 100644
--- a/tests/ui/unsafe/unsafe-fn-called-from-safe.rs
+++ b/tests/ui/unsafe/unsafe-fn-called-from-safe.rs
@@ -1,6 +1,8 @@
-unsafe fn f() { return; }
+unsafe fn f() {
+    return;
+}
 
 fn main() {
     f();
-    //~^ ERROR call to unsafe function is unsafe
+    //~^ ERROR call to unsafe function `f` is unsafe
 }