1 error[E0283]: type annotations needed
2 --> $DIR/issue-40294.rs:5:1
4 LL | trait Foo: Sized {
5 | ---------------- required by `Foo`
7 LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T)
8 LL | | where &'a T : Foo,
14 | |_^ cannot infer type for reference `&'a T`
16 = note: cannot resolve `&'a T: Foo`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0283`.