use constructor_lite::ConstructorLite;
#[derive(Debug, PartialEq, ConstructorLite)]
struct Movie<S = String>
where
S: AsRef<str>,
{
title: S,
year: Option<u16>,
}
#[test]
fn test_generics() {
assert_eq!(
Movie::new("Star Wars"),
Movie {
title: "Star Wars",
year: None
}
)
}