fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0283]: type annotations needed 2 --> $DIR/issue-21974.rs:10:1 3 | 4LL | trait Foo { 5 | --------- required by `Foo` 6... 7LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T) 8LL | | where &'a T : Foo, 9LL | | &'b T : Foo 10LL | | { 11LL | | x.foo(); 12LL | | y.foo(); 13LL | | } 14 | |_^ cannot infer type for reference `&'a T` 15 | 16 = note: cannot resolve `&'a T: Foo` 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0283`.