summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/associated-types-eq-1.stderr
blob: e9ace7d2574b95e8ccb1e2ee2ccae3a854d3adf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0412]: cannot find type `A` in this scope
  --> $DIR/associated-types-eq-1.rs:10:12
   |
LL | fn foo2<I: Foo>(x: I) {
   |         - similarly named type parameter `I` defined here
LL |     let _: A = x.boo();
   |            ^
   |
help: a type parameter with a similar name exists
   |
LL |     let _: I = x.boo();
   |            ~
help: you might be missing a type parameter
   |
LL | fn foo2<I: Foo, A>(x: I) {
   |               +++

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.