summaryrefslogtreecommitdiffstats
path: root/src/test/ui/abi/abi-typo-unstable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/abi/abi-typo-unstable.rs')
-rw-r--r--src/test/ui/abi/abi-typo-unstable.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/ui/abi/abi-typo-unstable.rs b/src/test/ui/abi/abi-typo-unstable.rs
new file mode 100644
index 000000000..94991a5eb
--- /dev/null
+++ b/src/test/ui/abi/abi-typo-unstable.rs
@@ -0,0 +1,6 @@
+// rust-intrinsic is unstable and not enabled, so it should not be suggested as a fix
+extern "rust-intrinsec" fn rust_intrinsic() {} //~ ERROR invalid ABI
+
+fn main() {
+ rust_intrinsic();
+}