]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/resume-arg-late-bound.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / generator / resume-arg-late-bound.stderr
1 error[E0308]: mismatched types
2   --> $DIR/resume-arg-late-bound.rs:15:5
3    |
4 LL |     test(gen);
5    |     ^^^^^^^^^ one type is more general than the other
6    |
7    = note: expected trait `for<'a> Generator<&'a mut bool>`
8               found trait `Generator<&mut bool>`
9 note: the lifetime requirement is introduced here
10   --> $DIR/resume-arg-late-bound.rs:8:17
11    |
12 LL | fn test(a: impl for<'a> Generator<&'a mut bool>) {}
13    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.