]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/typeck_type_placeholder_mismatch.rs:13:21 |
b7449926 XL |
3 | | |
4 | LL | 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 | |
12 | error[E0308]: mismatched types | |
0731742a | 13 | --> $DIR/typeck_type_placeholder_mismatch.rs:22:21 |
b7449926 XL |
14 | | |
15 | LL | 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 | |
23 | error: aborting due to 2 previous errors | |
24 | ||
25 | For more information about this error, try `rustc --explain E0308`. |