Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
traits
/
suggest-dereferences
/
root-obligation.rs
blob: 9d9ffb3f55ef0fe861feff9e0e8787f3137b2426 [
file
] [
log
] [
blame
]
// run-rustfix
fn
get_vowel_count
(
string
:
&
str
)
->
usize
{
string
.
chars
()
.
filter
(|
c
|
"aeiou"
.
contains
(
c
))
//~^ ERROR expected a `Fn(char)` closure, found `char`
.
count
()
}
fn
main
()
{
let
_
=
get_vowel_count
(
"asdf"
);
}