summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/typeck_type_placeholder_mismatch.stderr
blob: bf8e0bbb519c4521b241c472566755afebf61e75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0308]: mismatched types
  --> $DIR/typeck_type_placeholder_mismatch.rs:13:21
   |
LL |     let x: Foo<_> = Bar::<usize>(PhantomData);
   |            ------   ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Foo<_>`, found `Bar<usize>`
   |            |
   |            expected due to this
   |
   = note: expected struct `Foo<_>`
              found struct `Bar<usize>`

error[E0308]: mismatched types
  --> $DIR/typeck_type_placeholder_mismatch.rs:22:21
   |
LL |     let x: Foo<_> = Bar::<usize>(PhantomData);
   |            ------   ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Foo<_>`, found `Bar<usize>`
   |            |
   |            expected due to this
   |
   = note: expected struct `Foo<_>`
              found struct `Bar<usize>`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.