diff options
Diffstat (limited to 'tvix/nix-compat-derive-tests/tests/ui/parse_bad_version.rs')
-rw-r--r-- | tvix/nix-compat-derive-tests/tests/ui/parse_bad_version.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tvix/nix-compat-derive-tests/tests/ui/parse_bad_version.rs b/tvix/nix-compat-derive-tests/tests/ui/parse_bad_version.rs new file mode 100644 index 000000000000..35b3b05c23e1 --- /dev/null +++ b/tvix/nix-compat-derive-tests/tests/ui/parse_bad_version.rs @@ -0,0 +1,9 @@ +use nix_compat_derive::NixDeserialize; + +#[derive(NixDeserialize)] +pub struct Test { + #[nix(version = 12)] + version: u8, +} + +fn main() {} |