]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issue-66451.stderr
b691eac4f2d0e16d6e28bc81d9329246ac0af8c6
[rust.git] / src / test / ui / const-generics / issue-66451.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-66451.rs:27:10
3    |
4 LL |       let y: Test<{
5    |  ____________-
6 LL | |         Foo {
7 LL | |             value: 3,
8 LL | |             nested: &Bar(5),
9 LL | |         }
10 LL | |     }> = x;
11    | |      -   ^ expected `Foo { value: 3_i32, nested: &Bar::<i32>(5_i32) }`, found `Foo { value: 3_i32, nested: &Bar::<i32>(4_i32) }`
12    | |______|
13    |        expected due to this
14    |
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) }>`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.