2022-06-28 20:35:48 +00:00
|
|
|
error[E0308]: mismatched types
|
2024-07-14 12:38:51 +00:00
|
|
|
--> $DIR/issue-66451.rs:19:58
|
2022-06-28 20:35:48 +00:00
|
|
|
|
|
2024-07-14 12:38:51 +00:00
|
|
|
LL | let y: Test<{ Foo { value: 3, nested: &Bar(5) } }> = x;
|
|
|
|
| ------------------------------------------- ^ expected `Foo { value: 3, nested: &Bar::<i32>(5) }`, found `Foo { value: 3, nested: &Bar::<i32>(4) }`
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2022-06-28 20:35:48 +00:00
|
|
|
|
|
2022-07-18 23:25:14 +00:00
|
|
|
= note: expected struct `Test<Foo { value: 3, nested: &Bar::<i32>(5) }>`
|
|
|
|
found struct `Test<Foo { value: 3, nested: &Bar::<i32>(4) }>`
|
2022-06-28 20:35:48 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-06-28 20:35:48 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|