]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-eq-hr.nll.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / associated-types-eq-hr.nll.stderr
1 error[E0271]: type mismatch resolving `for<'x> <UintStruct as TheTrait<&'x isize>>::A == &'x isize`
2   --> $DIR/associated-types-eq-hr.rs:87:5
3    |
4 LL | fn foo<T>()
5    |    --- required by a bound in this
6 LL | where
7 LL |     T: for<'x> TheTrait<&'x isize, A = &'x isize>,
8    |                                    ------------- required by this bound in `foo`
9 ...
10 LL |     foo::<UintStruct>();
11    |     ^^^^^^^^^^^^^^^^^ expected `isize`, found `usize`
12    |
13    = note: expected reference `&isize`
14               found reference `&usize`
15
16 error[E0271]: type mismatch resolving `for<'x> <IntStruct as TheTrait<&'x isize>>::A == &'x usize`
17   --> $DIR/associated-types-eq-hr.rs:91:5
18    |
19 LL | fn bar<T>()
20    |    --- required by a bound in this
21 LL | where
22 LL |     T: for<'x> TheTrait<&'x isize, A = &'x usize>,
23    |                                    ------------- required by this bound in `bar`
24 ...
25 LL |     bar::<IntStruct>();
26    |     ^^^^^^^^^^^^^^^^ expected `usize`, found `isize`
27    |
28    = note: expected reference `&usize`
29               found reference `&isize`
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0271`.