aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unsorted-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/unsorted-struct.rs')
-rw-r--r--tests/ui/unsorted-struct.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/unsorted-struct.rs b/tests/ui/unsorted-struct.rs
new file mode 100644
index 0000000..98793f5
--- /dev/null
+++ b/tests/ui/unsorted-struct.rs
@@ -0,0 +1,12 @@
+use remain::sorted;
+
+#[sorted]
+struct TestStruct {
+ d: usize,
+ #[unsorted]
+ c: usize,
+ a: usize,
+ b: usize,
+}
+
+fn main() {}