fn has_prefix_words(list: &[String]) -> bool {
    for word1 in list {
        for word2 in list {
            if word1 != word2 && word1.starts_with(word2) {
                return true;
            }
        }
    }
    false
}
/// Checks if a list has any words that are prefixs of other
/// words on the list.
Checks if a list has any words that are prefixs of other
words on the list.
Checks if a list has any words that are prefixs of other words on the list .
fn has_prefix_words(list: &[String]) -> bool {
    for word1 in list {
        for word2 in list {
            if word1 != word2 && word1.starts_with(word2) {
                return true;
            }
        }
    }
    false
}
fn has_prefix_words ( list : & [ String ] ) -> bool { for word1 in list { for word2 in list { if word1 != word2 && word1 . starts_with ( word2 ) { return true ; } } } false }
Checks if a list has any words that are prefixs of other
words on the list.
Checks if a list has any words that are prefixs of other words on the list .
list
&[String]
list
&[String]