summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/typeck_type_placeholder_mismatch.stderr
blob: 867412a24b282c24b3055db8f8420101ed52b0df (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 struct `Foo`, found struct `Bar`
   |            |
   |            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 struct `Foo`, found struct `Bar`
   |            |
   |            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`.