Skip to content

Commit 69a4ae2

Browse files
committed
Add explanatory comment to the issue-84976.rs test case
1 parent f740923 commit 69a4ae2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/test/ui/mismatched_types/issue-84976.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/* Checks whether primitive type names are formatted correctly in the
2+
* error messages about mismatched types (#84976).
3+
*/
4+
15
fn foo(length: &u32) -> i32 {
26
0
37
}

src/test/ui/mismatched_types/issue-84976.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
error[E0308]: mismatched types
2-
--> $DIR/issue-84976.rs:11:16
2+
--> $DIR/issue-84976.rs:15:16
33
|
44
LL | length = { foo(&length) };
55
| ^^^^^^^^^^^^ expected `u32`, found `i32`
66

77
error[E0308]: mismatched types
8-
--> $DIR/issue-84976.rs:13:14
8+
--> $DIR/issue-84976.rs:17:14
99
|
1010
LL | length = foo(&length);
1111
| ^^^^^^^^^^^^ expected `u32`, found `i32`
1212

1313
error[E0308]: mismatched types
14-
--> $DIR/issue-84976.rs:17:22
14+
--> $DIR/issue-84976.rs:21:22
1515
|
1616
LL | float_length = { bar(&float_length) };
1717
| ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
1818

1919
error[E0308]: mismatched types
20-
--> $DIR/issue-84976.rs:19:20
20+
--> $DIR/issue-84976.rs:23:20
2121
|
2222
LL | float_length = bar(&float_length);
2323
| ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`

0 commit comments

Comments
 (0)