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 | length = foo(&length);
11 | ^^^^^^^^^^^^ expected `u32`, found `i32`
13 error[E0308]: mismatched types
14 --> $DIR/issue-84976.rs:21:22
16 LL | float_length = { bar(&float_length) };
17 | ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
19 error[E0308]: mismatched types
20 --> $DIR/issue-84976.rs:23:20
22 LL | float_length = bar(&float_length);
23 | ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
25 error: aborting due to 4 previous errors
27 For more information about this error, try `rustc --explain E0308`.