1 error[E0283]: type annotations needed
2 --> $DIR/issue-34979.rs:6:13
5 | --------- required by this bound in `Foo`
8 | ^^^ cannot infer type for reference `&'a ()`
10 = note: cannot satisfy `&'a (): Foo`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0283`.