about summary refs log tree commit diff
path: root/tvix/nix-compat-derive-tests/tests/ui/parse_bad_nix.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nix-compat-derive-tests/tests/ui/parse_bad_nix.rs')
-rw-r--r--tvix/nix-compat-derive-tests/tests/ui/parse_bad_nix.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tvix/nix-compat-derive-tests/tests/ui/parse_bad_nix.rs b/tvix/nix-compat-derive-tests/tests/ui/parse_bad_nix.rs
new file mode 100644
index 000000000000..690e76a20fe6
--- /dev/null
+++ b/tvix/nix-compat-derive-tests/tests/ui/parse_bad_nix.rs
@@ -0,0 +1,9 @@
+use nix_compat_derive::NixDeserialize;
+
+#[derive(NixDeserialize)]
+pub struct Test {
+    #[nix]
+    version: u8,
+}
+
+fn main() {}