1 error[E0277]: expected a `FnMut<(char,)>` closure, found `u8`
2 --> $DIR/assoc-fn-bound-root-obligation.rs:2:20
4 LL | s.strip_suffix(b'\n').unwrap_or(s)
5 | ------------ ^^^^^ expected an `FnMut<(char,)>` closure, found `u8`
7 | required by a bound introduced by this call
9 = help: the trait `FnMut<(char,)>` is not implemented for `u8`
10 = help: the following other types implement trait `Pattern<'a>`:
18 = note: required for `u8` to implement `Pattern<'_>`
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0277`.