fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0631]: type mismatch in closure arguments 2 --> $DIR/multiple-fn-bounds.rs:10:5 3 | 4LL | foo(move |x| v); 5 | ^^^ -------- found signature defined here 6 | | 7 | expected due to this 8 | 9 = note: expected closure signature `fn(char) -> _` 10 found closure signature `for<'a> fn(&'a char) -> _` 11note: closure inferred to have a different signature due to this bound 12 --> $DIR/multiple-fn-bounds.rs:1:11 13 | 14LL | fn foo<F: Fn(&char) -> bool + Fn(char) -> bool>(f: F) { 15 | ^^^^^^^^^^^^^^^^^ 16note: required by a bound in `foo` 17 --> $DIR/multiple-fn-bounds.rs:1:31 18 | 19LL | fn foo<F: Fn(&char) -> bool + Fn(char) -> bool>(f: F) { 20 | ^^^^^^^^^^^^^^^^ required by this bound in `foo` 21help: consider adjusting the signature so it does not borrow its argument 22 | 23LL | foo(move |char| v); 24 | ~~~~ 25 26error: aborting due to previous error 27 28For more information about this error, try `rustc --explain E0631`.