about summary refs log tree commit diff
path: root/tests/ui/parser/unsafe-foreign-mod-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/unsafe-foreign-mod-2.rs')
-rw-r--r--tests/ui/parser/unsafe-foreign-mod-2.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ui/parser/unsafe-foreign-mod-2.rs b/tests/ui/parser/unsafe-foreign-mod-2.rs
index 77856fb6734..c0994090eff 100644
--- a/tests/ui/parser/unsafe-foreign-mod-2.rs
+++ b/tests/ui/parser/unsafe-foreign-mod-2.rs
@@ -1,8 +1,7 @@
 extern "C" unsafe {
-               //~^ ERROR expected `{`, found keyword `unsafe`
-               //~| ERROR extern block cannot be declared unsafe
+    //~^ ERROR expected `{`, found keyword `unsafe`
     unsafe fn foo();
-        //~^ ERROR functions in `extern` blocks cannot have qualifiers
+    //~^ ERROR functions in `extern` blocks cannot have qualifiers
 }
 
 fn main() {}