]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/bound/assoc-fn-bound-root-obligation.stderr
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / tests / ui / traits / bound / assoc-fn-bound-root-obligation.stderr
CommitLineData
ed00b5ec 1error[E0277]: expected a `FnMut(char)` closure, found `u8`
f2b60f7d 2 --> $DIR/assoc-fn-bound-root-obligation.rs:2:7
04454e1e
FG
3 |
4LL | s.strip_suffix(b'\n').unwrap_or(s)
ed00b5ec 5 | ^^^^^^^^^^^^ expected an `FnMut(char)` closure, found `u8`
04454e1e 6 |
31ef2f64 7 = help: the trait `FnMut(char)` is not implemented for `u8`, which is required by `u8: Pattern<'_>`
04454e1e
FG
8 = help: the following other types implement trait `Pattern<'a>`:
9 &'b String
10 &'b [char; N]
11 &'b [char]
fe692bf9 12 &'b str
e8be2606
FG
13 &'c &'b str
14 [char; N]
15 char
f2b60f7d 16 = note: required for `u8` to implement `Pattern<'_>`
04454e1e 17
4b012472 18error: aborting due to 1 previous error
04454e1e
FG
19
20For more information about this error, try `rustc --explain E0277`.