fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: expected a `Fn<(char,)>` closure, found `char` 2 --> $DIR/root-obligation.rs:6:38 3 | 4LL | .filter(|c| "aeiou".contains(c)) 5 | -------- ^ expected an `Fn<(char,)>` closure, found `char` 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: the trait `Fn<(char,)>` is not implemented for `char` 10 = note: required for `&char` to implement `FnOnce<(char,)>` 11 = note: required for `&char` to implement `Pattern<'_>` 12note: required by a bound in `core::str::<impl str>::contains` 13 --> $SRC_DIR/core/src/str/mod.rs:LL:COL 14help: consider dereferencing here 15 | 16LL | .filter(|c| "aeiou".contains(*c)) 17 | + 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0277`.