]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck_type_placeholder_mismatch.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / typeck / typeck_type_placeholder_mismatch.stderr
1 error[E0308]: mismatched types
2   --> $DIR/typeck_type_placeholder_mismatch.rs:23:21
3    |
4 LL |     let x: Foo<_> = Bar::<usize>(PhantomData);
5    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
6    |
7    = note: expected type `Foo<_>`
8               found type `Bar<usize>`
9
10 error[E0308]: mismatched types
11   --> $DIR/typeck_type_placeholder_mismatch.rs:32:21
12    |
13 LL |     let x: Foo<_> = Bar::<usize>(PhantomData);
14    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
15    |
16    = note: expected type `Foo<_>`
17               found type `Bar<usize>`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.