]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hrtb/issue-62203-hrtb-ice.stderr
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / test / ui / hrtb / issue-62203-hrtb-ice.stderr
1 error[E0271]: type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]> as T0<'r, (&'r u8,)>>::O == <_ as Ty<'r>>::V`
2   --> $DIR/issue-62203-hrtb-ice.rs:38:19
3    |
4 LL |     let v = Unit2.m(
5    |                   ^ expected struct `Unit4`, found associated type
6    |
7    = note:       expected struct `Unit4`
8            found associated type `<_ as Ty<'_>>::V`
9    = help: consider constraining the associated type `<_ as Ty<'_>>::V` to `Unit4`
10    = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
11
12 error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39] as FnOnce<((&'r u8,),)>>::Output == Unit3`
13   --> $DIR/issue-62203-hrtb-ice.rs:40:9
14    |
15 LL |       let v = Unit2.m(
16    |                     - required by a bound introduced by this call
17 LL |
18 LL | /         L {
19 LL | |
20 LL | |             f : |x| { drop(x); Unit4 }
21 LL | |         });
22    | |_________^ expected struct `Unit4`, found struct `Unit3`
23    |
24 note: required because of the requirements on the impl of `for<'r> T0<'r, (&'r u8,)>` for `L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]>`
25   --> $DIR/issue-62203-hrtb-ice.rs:17:16
26    |
27 LL | impl<'a, A, T> T0<'a, A> for L<T>
28    |                ^^^^^^^^^     ^^^^
29
30 error: aborting due to 2 previous errors
31
32 For more information about this error, try `rustc --explain E0271`.