fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
667 B20 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-66451.rs:29:10
3   |
4LL |       let y: Test<{
5   |  ____________-
6LL | |         Foo {
7LL | |             value: 3,
8LL | |             nested: &Bar(5),
9LL | |         }
10LL | |     }> = 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
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.