fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
267 B13 linesraw
1// run-rustfix
2
3fn get_vowel_count(string: &str) -> usize {
4    string
5        .chars()
6        .filter(|c| "aeiou".contains(*c))
7        //~^ ERROR expected a `Fn<(char,)>` closure, found `char`
8        .count()
9}
10
11fn main() {
12    let _ = get_vowel_count("asdf");
13}