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