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