Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
traits
/
suggest-dereferences
/
root-obligation.fixed
blob: ad0f184dc9a42f074c3943a2f34f5a5789481a7f [
file
] [
log
] [
blame
] [
edit
]
//@ run-rustfix
fn get_vowel_count
(
string
:
&
str
)
->
usize
{
string
.
chars
()
.
filter
(|
c
|
"aeiou"
.
contains
(*
c
))
//~^ ERROR the trait bound `&char: Pattern` is not satisfied
.
count
()
}
fn main
()
{
let
_
=
get_vowel_count
(
"asdf"
);
}