]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-eq-1.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / associated-types-eq-1.stderr
1 error[E0412]: cannot find type `A` in this scope
2   --> $DIR/associated-types-eq-1.rs:10:12
3    |
4 LL | fn foo2<I: Foo>(x: I) {
5    |         - similarly named type parameter `I` defined here
6 LL |     let _: A = x.boo();
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    |               ^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0412`.