about summary refs log tree commit diff
path: root/tvix/nix-compat-derive-tests/tests/ui/deserialize_missing_default.rs
blob: e9df6284551817c7f25b9276e830ece123db685f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use nix_compat_derive::NixDeserialize;

#[derive(NixDeserialize)]
pub struct Value(String);

#[derive(NixDeserialize)]
pub struct Test {
    #[nix(version = "20..")]
    version: Value,
}

fn main() {}