fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
528 B15 linesraw
1error[E0631]: type mismatch in function arguments
2  --> $DIR/resume-arg-late-bound.rs:15:10
3   |
4LL | fn test(a: impl for<'a> Generator<&'a mut bool>) {}
5   |                 ------------------------------- required by this bound in `test`
6...
7LL |     test(gen);
8   |          ^^^
9   |          |
10   |          expected signature of `for<'a> fn(&'a mut bool) -> _`
11   |          found signature of `fn(&mut bool) -> _`
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0631`.