]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/issue-84976.stderr
Rollup merge of #93635 - GuillaumeGomez:missing-platform-spec-info, r=Amanieu
[rust.git] / src / test / ui / mismatched_types / issue-84976.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-84976.rs:15:16
3    |
4 LL |     length = { foo(&length) };
5    |                ^^^^^^^^^^^^ expected `u32`, found `i32`
6
7 error[E0308]: mismatched types
8   --> $DIR/issue-84976.rs:17:14
9    |
10 LL |     let mut length = 0;
11    |                      - expected due to this value
12 ...
13 LL |     length = foo(&length);
14    |              ^^^^^^^^^^^^ expected `u32`, found `i32`
15
16 error[E0308]: mismatched types
17   --> $DIR/issue-84976.rs:21:22
18    |
19 LL |     float_length = { bar(&float_length) };
20    |                      ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
21
22 error[E0308]: mismatched types
23   --> $DIR/issue-84976.rs:23:20
24    |
25 LL |     let mut float_length = 0.0;
26    |                            --- expected due to this value
27 ...
28 LL |     float_length = bar(&float_length);
29    |                    ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
30
31 error: aborting due to 4 previous errors
32
33 For more information about this error, try `rustc --explain E0308`.