]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/typeck_type_placeholder_mismatch.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / typeck / typeck_type_placeholder_mismatch.stderr
1 error[E0308]: mismatched types
2   --> $DIR/typeck_type_placeholder_mismatch.rs:13:21
3    |
4 LL |     let x: Foo<_> = Bar::<usize>(PhantomData);
5    |            ------   ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
6    |            |
7    |            expected due to this
8    |
9    = note: expected struct `Foo<_>`
10               found struct `Bar<usize>`
11
12 error[E0308]: mismatched types
13   --> $DIR/typeck_type_placeholder_mismatch.rs:22:21
14    |
15 LL |     let x: Foo<_> = Bar::<usize>(PhantomData);
16    |            ------   ^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Foo`, found struct `Bar`
17    |            |
18    |            expected due to this
19    |
20    = note: expected struct `Foo<_>`
21               found struct `Bar<usize>`
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0308`.