error[E0283]: type annotations needed --> $DIR/issue-21974.rs:11:19 | LL | where &'a T : Foo, | ^^^ cannot infer type for reference `&'a T` | = note: cannot satisfy `&'a T: Foo` note: required by a bound in `Foo` --> $DIR/issue-21974.rs:6:1 | LL | trait Foo { | ^^^^^^^^^ required by this bound in `Foo` error: aborting due to previous error For more information about this error, try `rustc --explain E0283`.