summaryrefslogtreecommitdiffstats
path: root/tests/ui/test-attrs/issue-109816.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/test-attrs/issue-109816.rs')
-rw-r--r--tests/ui/test-attrs/issue-109816.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/test-attrs/issue-109816.rs b/tests/ui/test-attrs/issue-109816.rs
new file mode 100644
index 000000000..21fe5bc53
--- /dev/null
+++ b/tests/ui/test-attrs/issue-109816.rs
@@ -0,0 +1,7 @@
+// compile-flags: --test
+
+fn align_offset_weird_strides() {
+ #[test]
+ //~^ ERROR the `#[test]` attribute may only be used on a non-associated function
+ struct A5(u32, u8);
+}