1 error: at least one trait must be specified
2 --> $DIR/issue-86719.rs:7:14
7 error[E0407]: method `foo` is not a member of trait `Bar`
8 --> $DIR/issue-86719.rs:8:5
10 LL | / fn foo() -> Self::E {
13 | |_____^ not a member of trait `Bar`
15 error[E0282]: type annotations needed
16 --> $DIR/issue-86719.rs:9:10
21 help: consider giving this closure parameter an explicit type
26 error: aborting due to 3 previous errors
28 Some errors have detailed explanations: E0282, E0407.
29 For more information about an error, try `rustc --explain E0282`.