Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
traits
/
suggest-dereferences
/
root-obligation.rs
blob: a31a9955d313a4b13728986bf17d4aeff1b413f9 [
file
] [
log
] [
blame
]
//@ 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"
);
}