1 use std::convert::TryFrom;
3 pub fn test_usage(p: ()) {
4 SmallCString::try_from(p).map(|cstr| cstr);
5 //~^ ERROR: type annotations needed
8 pub struct SmallCString<const N: usize> {}
10 impl<const N: usize> TryFrom<()> for SmallCString<N> {
13 fn try_from(path: ()) -> Result<Self, Self::Error> {