summaryrefslogtreecommitdiffstats
path: root/tests/rust/const_transparent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rust/const_transparent.rs')
-rw-r--r--tests/rust/const_transparent.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/rust/const_transparent.rs b/tests/rust/const_transparent.rs
new file mode 100644
index 0000000..7032953
--- /dev/null
+++ b/tests/rust/const_transparent.rs
@@ -0,0 +1,4 @@
+#[repr(transparent)]
+struct Transparent { field: u8 }
+
+pub const FOO: Transparent = Transparent { field: 0 };