1 error[E0283]: type annotations required: cannot resolve `&'a T: Foo`
2 --> $DIR/issue-40294.rs:15:1
4 15 | / fn foo<'a,'b,T>(x: &'a T, y: &'b T) //~ ERROR type annotations required
5 16 | | where &'a T : Foo,
13 = note: required by `Foo`
15 error: aborting due to previous error