rust/tests/ui/associated-type-bounds/issue-71443-1.stderr

12 lines
393 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-71443-1.rs:4:5
|
LL | fn hello<F: for<'a> Iterator<Item: 'a>>() {
| - help: try adding a return type: `-> Incorrect`
LL | Incorrect
| ^^^^^^^^^ expected `()`, found `Incorrect`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0308`.