]> git.lizzy.rs Git - rust.git/blob - tests/ui/slightly-nice-generic-literal-messages.stderr
add tests for 107090
[rust.git] / tests / ui / slightly-nice-generic-literal-messages.stderr
1 error[E0308]: mismatched types
2   --> $DIR/slightly-nice-generic-literal-messages.rs:7:9
3    |
4 LL |     match Foo(1.1, marker::PhantomData) {
5    |           ----------------------------- this expression has type `Foo<{float}, _>`
6 LL |         1 => {}
7    |         ^ expected struct `Foo`, found integer
8    |
9    = note: expected struct `Foo<{float}, _>`
10                 found type `{integer}`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.