fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
438 B18 linesraw
1error[E0283]: type annotations needed: cannot resolve `&'a T: Foo`
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   | |_^
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0283`.