]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/issue-62203-hrtb-ice.stderr
New upstream version 1.58.1+dfsg1
[rustc.git] / src / test / ui / hrtb / issue-62203-hrtb-ice.stderr
CommitLineData
94222f64 1error[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`
416331ca
XL
2 --> $DIR/issue-62203-hrtb-ice.rs:38:19
3 |
4LL | let v = Unit2.m(
3c0e092e 5 | ^ expected associated type, found struct `Unit4`
416331ca 6 |
3c0e092e
XL
7 = note: expected associated type `<_ as Ty<'_>>::V`
8 found struct `Unit4`
9 = help: consider constraining the associated type `<_ as Ty<'_>>::V` to `Unit4` or calling a method that returns `<_ as Ty<'_>>::V`
e1599b0c 10 = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
3c0e092e
XL
11note: required by a bound in `T1::m`
12 --> $DIR/issue-62203-hrtb-ice.rs:27:51
13 |
14LL | fn m<'a, B: Ty<'a>, F>(&self, f: F) -> Unit1
15 | - required by a bound in this
16LL | where
17LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
18 | ^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
416331ca 19
94222f64 20error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39] as FnOnce<((&'r u8,),)>>::Output == Unit3`
3c0e092e 21 --> $DIR/issue-62203-hrtb-ice.rs:40:9
416331ca 22 |
3c0e092e
XL
23LL | let v = Unit2.m(
24 | - required by a bound introduced by this call
25LL |
26LL | / L {
27LL | |
28LL | | f : |x| { drop(x); Unit4 }
29LL | | });
30 | |_________^ expected struct `Unit3`, found struct `Unit4`
416331ca 31 |
94222f64 32note: 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]>`
cdc7bbd5
XL
33 --> $DIR/issue-62203-hrtb-ice.rs:17:16
34 |
35LL | impl<'a, A, T> T0<'a, A> for L<T>
36 | ^^^^^^^^^ ^^^^
3c0e092e
XL
37note: required by a bound in `T1::m`
38 --> $DIR/issue-62203-hrtb-ice.rs:27:12
39 |
40LL | fn m<'a, B: Ty<'a>, F>(&self, f: F) -> Unit1
41 | - required by a bound in this
42LL | where
43LL | F: for<'r> T0<'r, (<Self as Ty<'r>>::V,), O = <B as Ty<'r>>::V>,
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `T1::m`
416331ca
XL
45
46error: aborting due to 2 previous errors
47
48For more information about this error, try `rustc --explain E0271`.