pub fn get_nested_types<'a>( segment: &'a PathSegment, message: &'static str, ) -> Result<Vec<&'a Type>, Error>