]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | error[E0277]: expected a `FnMut<(char,)>` closure, found `u8` |
2 | --> $DIR/assoc-fn-bound-root-obligation.rs:2:20 | |
3 | | | |
4 | LL | s.strip_suffix(b'\n').unwrap_or(s) | |
5 | | ------------ ^^^^^ expected an `FnMut<(char,)>` closure, found `u8` | |
6 | | | | |
7 | | required by a bound introduced by this call | |
8 | | | |
9 | = help: the trait `FnMut<(char,)>` is not implemented for `u8` | |
10 | = help: the following other types implement trait `Pattern<'a>`: | |
11 | &'b String | |
12 | &'b [char; N] | |
13 | &'b [char] | |
14 | &'b str | |
15 | &'c &'b str | |
16 | [char; N] | |
17 | char | |
18 | pattern::MultiCharEqPattern<C> | |
19 | = note: required because of the requirements on the impl of `Pattern<'_>` for `u8` | |
20 | ||
21 | error: aborting due to previous error | |
22 | ||
23 | For more information about this error, try `rustc --explain E0277`. |