about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0060.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0060.rs')
-rw-r--r--tests/ui/error-codes/E0060.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0060.rs b/tests/ui/error-codes/E0060.rs
new file mode 100644
index 00000000000..7050a1dff6c
--- /dev/null
+++ b/tests/ui/error-codes/E0060.rs
@@ -0,0 +1,8 @@
+extern "C" {
+    fn printf(_: *const u8, ...) -> u32;
+}
+
+fn main() {
+    unsafe { printf(); }
+    //~^ ERROR E0060
+}