summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-abi_unadjusted.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-abi_unadjusted.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-abi_unadjusted.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-abi_unadjusted.rs b/tests/ui/feature-gates/feature-gate-abi_unadjusted.rs
new file mode 100644
index 000000000..35a7d7328
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-abi_unadjusted.rs
@@ -0,0 +1,7 @@
+extern "unadjusted" fn foo() {
+//~^ ERROR: unadjusted ABI is an implementation detail and perma-unstable
+}
+
+fn main() {
+ foo();
+}