]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-type-bounds/issue-71443-1.stderr
Rollup merge of #99064 - lyming2007:issue-97687-fix, r=estebank
[rust.git] / src / test / ui / associated-type-bounds / issue-71443-1.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-71443-1.rs:6:5
3    |
4 LL | fn hello<F: for<'a> Iterator<Item: 'a>>() {
5    |                                           - help: try adding a return type: `-> Incorrect`
6 LL |     Incorrect
7    |     ^^^^^^^^^ expected `()`, found struct `Incorrect`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0308`.