error: expected trait bound, found `impl Trait` type --> $DIR/issue-102182-impl-trait-recover.rs:1:11 | LL | fn foo() {} | ^^^^^^^^^^ not a trait | help: use the trait bounds directly | LL - fn foo() {} LL + fn foo() {} | error: aborting due to previous error