]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/traits/bound/assoc-fn-bound-root-obligation.stderr
Auto merge of #101017 - JohnTitor:rollup-73f2fhb, r=JohnTitor
[rust.git] / src / test / ui / traits / bound / assoc-fn-bound-root-obligation.stderr
index 41120c09fb1640e2d26a36a15bc3d8801f768081..ce9ab2d811ae112d22c7959e17374755b6e90463 100644 (file)
@@ -1,10 +1,8 @@
 error[E0277]: expected a `FnMut<(char,)>` closure, found `u8`
-  --> $DIR/assoc-fn-bound-root-obligation.rs:2:20
+  --> $DIR/assoc-fn-bound-root-obligation.rs:2:7
    |
 LL |     s.strip_suffix(b'\n').unwrap_or(s)
-   |       ------------ ^^^^^ expected an `FnMut<(char,)>` closure, found `u8`
-   |       |
-   |       required by a bound introduced by this call
+   |       ^^^^^^^^^^^^ expected an `FnMut<(char,)>` closure, found `u8`
    |
    = help: the trait `FnMut<(char,)>` is not implemented for `u8`
    = help: the following other types implement trait `Pattern<'a>`: