use relax::Relax; #[derive(Relax)] #[relax(PartialThing)] struct Thing<'a, T> { some_ref: &'a T, str_lit: &'static str, } #[test] fn lifetime() { let x = 10; let _y = PartialThing { some_ref: Some(&x), str_lit: Some("hey"), }; }