1 error[E0308]: mismatched types
2 --> $DIR/issue-66451.rs:27:10
8 LL | | nested: &Bar(5),
11 | | - ^ expected `Foo { value: 3_i32, nested: &Bar::<i32>(5_i32) }`, found `Foo { value: 3_i32, nested: &Bar::<i32>(4_i32) }`
13 | expected due to this
15 = note: expected struct `Test<Foo { value: 3_i32, nested: &Bar::<i32>(5_i32) }>`
16 found struct `Test<Foo { value: 3_i32, nested: &Bar::<i32>(4_i32) }>`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.