File tree 2 files changed +8
-4
lines changed
src/test/ui/mismatched_types
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ /* Checks whether primitive type names are formatted correctly in the
2
+ * error messages about mismatched types (#84976).
3
+ */
4
+
1
5
fn foo ( length : & u32 ) -> i32 {
2
6
0
3
7
}
Original file line number Diff line number Diff line change 1
1
error[E0308]: mismatched types
2
- --> $DIR/issue-84976.rs:11 :16
2
+ --> $DIR/issue-84976.rs:15 :16
3
3
|
4
4
LL | length = { foo(&length) };
5
5
| ^^^^^^^^^^^^ expected `u32`, found `i32`
6
6
7
7
error[E0308]: mismatched types
8
- --> $DIR/issue-84976.rs:13 :14
8
+ --> $DIR/issue-84976.rs:17 :14
9
9
|
10
10
LL | length = foo(&length);
11
11
| ^^^^^^^^^^^^ expected `u32`, found `i32`
12
12
13
13
error[E0308]: mismatched types
14
- --> $DIR/issue-84976.rs:17 :22
14
+ --> $DIR/issue-84976.rs:21 :22
15
15
|
16
16
LL | float_length = { bar(&float_length) };
17
17
| ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
18
18
19
19
error[E0308]: mismatched types
20
- --> $DIR/issue-84976.rs:19 :20
20
+ --> $DIR/issue-84976.rs:23 :20
21
21
|
22
22
LL | float_length = bar(&float_length);
23
23
| ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
You can’t perform that action at this time.
0 commit comments