]>
Commit | Line | Data |
---|---|---|
e74abb32 | 1 | error[E0283]: type annotations needed: cannot resolve `&'a T: Foo` |
0731742a | 2 | --> $DIR/issue-21974.rs:10:1 |
8faf50e0 | 3 | | |
e1599b0c XL |
4 | LL | trait Foo { |
5 | | --------- required by `Foo` | |
6 | ... | |
532ac7d7 | 7 | LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T) |
8faf50e0 XL |
8 | LL | | where &'a T : Foo, |
9 | LL | | &'b T : Foo | |
10 | LL | | { | |
11 | LL | | x.foo(); | |
12 | LL | | y.foo(); | |
13 | LL | | } | |
14 | | |_^ | |
8faf50e0 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
18 | For more information about this error, try `rustc --explain E0283`. |