about summary refs log tree commit diff
path: root/tests/ui/attributes/obsolete-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/attributes/obsolete-attr.rs')
-rw-r--r--tests/ui/attributes/obsolete-attr.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/attributes/obsolete-attr.rs b/tests/ui/attributes/obsolete-attr.rs
new file mode 100644
index 00000000000..7019abcaffb
--- /dev/null
+++ b/tests/ui/attributes/obsolete-attr.rs
@@ -0,0 +1,9 @@
+// Obsolete attributes fall back to unstable custom attributes.
+
+#[ab_isize = "stdcall"] extern "C" {}
+//~^ ERROR cannot find attribute `ab_isize` in this scope
+
+#[fixed_stack_segment] fn f() {}
+//~^ ERROR cannot find attribute `fixed_stack_segment` in this scope
+
+fn main() {}