summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-fn_align.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-fn_align.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-fn_align.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-fn_align.rs b/tests/ui/feature-gates/feature-gate-fn_align.rs
new file mode 100644
index 000000000..ea873dba2
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-fn_align.rs
@@ -0,0 +1,4 @@
+#![crate_type = "lib"]
+
+#[repr(align(16))] //~ ERROR `repr(align)` attributes on functions are unstable
+fn requires_alignment() {}