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