fn strip_generics_from_path_segment(
    segment: Vec<char>
) -> Result<String, MalformedGenerics>