]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/issue-84976.stderr
Rollup merge of #89945 - JohnTitor:we-now-specialize-clone-from-slice, r=the8472
[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 |     length = foo(&length);
11    |              ^^^^^^^^^^^^ expected `u32`, found `i32`
12
13 error[E0308]: mismatched types
14   --> $DIR/issue-84976.rs:21:22
15    |
16 LL |     float_length = { bar(&float_length) };
17    |                      ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
18
19 error[E0308]: mismatched types
20   --> $DIR/issue-84976.rs:23:20
21    |
22 LL |     float_length = bar(&float_length);
23    |                    ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
24
25 error: aborting due to 4 previous errors
26
27 For more information about this error, try `rustc --explain E0308`.