use std::convert::TryFrom; pub fn test_usage(p: ()) { SmallCString::try_from(p).map(|cstr| cstr); //~^ ERROR: type annotations needed } pub struct SmallCString {} impl TryFrom<()> for SmallCString { type Error = (); fn try_from(path: ()) -> Result { unimplemented!(); } } fn main() {}