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