]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hrtb/issue-62203-hrtb-ice.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / hrtb / issue-62203-hrtb-ice.stderr
CommitLineData
416331ca
XL
1error[E0271]: type mismatch resolving `for<'r> <L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]> as T0<'r, (<Unit2 as Ty<'r>>::V,)>>::O == <_ as Ty<'r>>::V`
2 --> $DIR/issue-62203-hrtb-ice.rs:38:19
3 |
4LL | let v = Unit2.m(
5 | ^ expected struct `Unit4`, found associated type
6 |
60c5eb7d
XL
7 = note: expected struct `Unit4`
8 found associated type `<_ as Ty<'_>>::V`
f9f354fc 9 = help: consider constraining the associated type `<_ as Ty<'_>>::V` to `Unit4`
e1599b0c 10 = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
416331ca 11
1b1a35ee 12error[E0271]: type mismatch resolving `<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39] as FnOnce<((&u8,),)>>::Output == Unit3`
416331ca
XL
13 --> $DIR/issue-62203-hrtb-ice.rs:38:19
14 |
15LL | let v = Unit2.m(
16 | ^ expected struct `Unit4`, found struct `Unit3`
17 |
416331ca
XL
18 = note: required because of the requirements on the impl of `for<'r> T0<'r, (<Unit2 as Ty<'r>>::V,)>` for `L<[closure@$DIR/issue-62203-hrtb-ice.rs:42:17: 42:39]>`
19
20error: aborting due to 2 previous errors
21
22For more information about this error, try `rustc --explain E0271`.