]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / traits / bound / assoc-fn-bound-root-obligation.stderr
CommitLineData
04454e1e
FG
1error[E0277]: expected a `FnMut<(char,)>` closure, found `u8`
2 --> $DIR/assoc-fn-bound-root-obligation.rs:2:20
3 |
4LL | 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
21error: aborting due to previous error
22
23For more information about this error, try `rustc --explain E0277`.