fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: expected a `FnMut<(char,)>` closure, found `u8` 2 --> $DIR/assoc-fn-bound-root-obligation.rs:2:7 3 | 4LL | s.strip_suffix(b'\n').unwrap_or(s) 5 | ^^^^^^^^^^^^ expected an `FnMut<(char,)>` closure, found `u8` 6 | 7 = help: the trait `FnMut<(char,)>` is not implemented for `u8` 8 = help: the following other types implement trait `Pattern<'a>`: 9 char 10 [char; N] 11 &'b String 12 &'b [char; N] 13 &'b [char] 14 &'c &'b str 15 &'b str 16 = note: required for `u8` to implement `Pattern<'_>` 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0277`.