1 /* Checks whether primitive type names are formatted correctly in the
2 * error messages about mismatched types (#84976).
5 fn foo(length: &u32) -> i32 {
9 fn bar(length: &f32) -> f64 {
15 length = { foo(&length) };
16 //~^ ERROR mismatched types [E0308]
17 length = foo(&length);
18 //~^ ERROR mismatched types [E0308]
20 let mut float_length = 0.0;
21 float_length = { bar(&float_length) };
22 //~^ ERROR mismatched types [E0308]
23 float_length = bar(&float_length);
24 //~^ ERROR mismatched types [E0308]