]> git.proxmox.com Git - rustc.git/blame - src/test/ui/typeck/typeck_type_placeholder_mismatch.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / typeck / typeck_type_placeholder_mismatch.stderr
CommitLineData
b7449926 1error[E0308]: mismatched types
0731742a 2 --> $DIR/typeck_type_placeholder_mismatch.rs:13:21
b7449926
XL
3 |
4LL | let x: Foo<_> = Bar::<usize>(PhantomData);
60c5eb7d
XL
5 | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
6 | |
7 | expected due to this
b7449926 8 |
60c5eb7d
XL
9 = note: expected struct `Foo<_>`
10 found struct `Bar<usize>`
b7449926
XL
11
12error[E0308]: mismatched types
0731742a 13 --> $DIR/typeck_type_placeholder_mismatch.rs:22:21
b7449926
XL
14 |
15LL | let x: Foo<_> = Bar::<usize>(PhantomData);
60c5eb7d
XL
16 | ------ ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
17 | |
18 | expected due to this
b7449926 19 |
60c5eb7d
XL
20 = note: expected struct `Foo<_>`
21 found struct `Bar<usize>`
b7449926
XL
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0308`.