fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
493 B20 linesraw
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`.