]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0412]: cannot find type `A` in this scope |
0731742a | 2 | --> $DIR/associated-types-eq-1.rs:10:12 |
b7449926 | 3 | | |
e74abb32 XL |
4 | LL | fn foo2<I: Foo>(x: I) { |
5 | | - similarly named type parameter `I` defined here | |
532ac7d7 | 6 | LL | let _: A = x.boo(); |
f035d41b XL |
7 | | ^ |
8 | | | |
9 | help: a type parameter with a similar name exists | |
10 | | | |
11 | LL | let _: I = x.boo(); | |
12 | | ^ | |
13 | help: you might be missing a type parameter | |
14 | | | |
15 | LL | fn foo2<I: Foo, A>(x: I) { | |
16 | | ^^^ | |
b7449926 XL |
17 | |
18 | error: aborting due to previous error | |
19 | ||
20 | For more information about this error, try `rustc --explain E0412`. |