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