about summary refs log blame commit diff
path: root/tvix/nix-compat-derive-tests/tests/ui/deserialize_missing_default_path.rs
blob: 4f319c069dcac5848d33ee79ec893fa83b7cb50b (plain) (tree)
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..", default = "Value::make_default")]
    version: Value,
}

fn main() {}