]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-eq-3.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / associated-types / associated-types-eq-3.stderr
1 error[E0308]: mismatched types
2   --> $DIR/associated-types-eq-3.rs:33:18
3    |
4 LL |     let _: Bar = x.boo();
5    |                  ^^^^^^^ expected struct `Bar`, found associated type
6    |
7    = note: expected type `Bar`
8               found type `<I as Foo>::A`
9
10 error[E0271]: type mismatch resolving `<isize as Foo>::A == Bar`
11   --> $DIR/associated-types-eq-3.rs:48:5
12    |
13 LL |     foo1(a);
14    |     ^^^^ expected usize, found struct `Bar`
15    |
16    = note: expected type `usize`
17               found type `Bar`
18 note: required by `foo1`
19   --> $DIR/associated-types-eq-3.rs:28:1
20    |
21 LL | fn foo1<I: Foo<A=Bar>>(x: I) {
22    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
24 error[E0271]: type mismatch resolving `<isize as Foo>::A == Bar`
25   --> $DIR/associated-types-eq-3.rs:51:9
26    |
27 LL |     baz(&a);
28    |         ^^ expected usize, found struct `Bar`
29    |
30    = note: expected type `usize`
31               found type `Bar`
32    = note: required for the cast to the object type `dyn Foo<A=Bar>`
33
34 error: aborting due to 3 previous errors
35
36 Some errors occurred: E0271, E0308.
37 For more information about an error, try `rustc --explain E0271`.