]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/issue-66451.stderr
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / 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, nested: &Bar::<i32>(5) }`, found `Foo { value: 3, nested: &Bar::<i32>(4) }`
12    | |______|
13    |        expected due to this
14    |
15    = note: expected struct `Test<Foo { value: 3, nested: &Bar::<i32>(5) }>`
16               found struct `Test<Foo { value: 3, nested: &Bar::<i32>(4) }>`
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.