1error[E0308]: mismatched types
2  --> $DIR/issue-84976.rs:15:16
3   |
4LL |     length = { foo(&length) };
5   |                ^^^^^^^^^^^^ expected `u32`, found `i32`
6
7error[E0308]: mismatched types
8  --> $DIR/issue-84976.rs:17:14
9   |
10LL |     let mut length = 0;
11   |                      - expected due to this value
12...
13LL |     length = foo(&length);
14   |              ^^^^^^^^^^^^ expected `u32`, found `i32`
15
16error[E0308]: mismatched types
17  --> $DIR/issue-84976.rs:21:22
18   |
19LL |     float_length = { bar(&float_length) };
20   |                      ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
21
22error[E0308]: mismatched types
23  --> $DIR/issue-84976.rs:23:20
24   |
25LL |     let mut float_length = 0.0;
26   |                            --- expected due to this value
27...
28LL |     float_length = bar(&float_length);
29   |                    ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
30
31error: aborting due to 4 previous errors
32
33For more information about this error, try `rustc --explain E0308`.
34