about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0622.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0622.rs')
-rw-r--r--tests/ui/error-codes/E0622.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0622.rs b/tests/ui/error-codes/E0622.rs
new file mode 100644
index 00000000000..ae7378a707e
--- /dev/null
+++ b/tests/ui/error-codes/E0622.rs
@@ -0,0 +1,6 @@
+#![feature(intrinsics)]
+extern "rust-intrinsic" {
+    pub static breakpoint : unsafe extern "rust-intrinsic" fn();
+    //~^ ERROR intrinsic must be a function [E0622]
+}
+fn main() { unsafe { breakpoint(); } }