fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
767 B15 linesraw
1error[E0277]: expected a `std::ops::FnMut<(char,)>` closure, found `std::string::String`
2  --> $DIR/issue-62843.rs:4:32
3   |
4LL |     println!("{:?}", line.find(pattern));
5   |                                ^^^^^^^
6   |                                |
7   |                                expected an implementor of trait `std::str::pattern::Pattern<'_>`
8   |                                help: consider borrowing here: `&pattern`
9   |
10   = note: the trait bound `std::string::String: std::str::pattern::Pattern<'_>` is not satisfied
11   = note: required because of the requirements on the impl of `std::str::pattern::Pattern<'_>` for `std::string::String`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.