This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/test/ui/mismatched_types Expand file tree Collapse file tree 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+
15fn foo ( length : & u32 ) -> i32 {
26 0
37}
Original file line number Diff line number Diff line change 11error[E0308]: mismatched types
2- --> $DIR/issue-84976.rs:11 :16
2+ --> $DIR/issue-84976.rs:15 :16
33 |
44LL | length = { foo(&length) };
55 | ^^^^^^^^^^^^ expected `u32`, found `i32`
66
77error[E0308]: mismatched types
8- --> $DIR/issue-84976.rs:13 :14
8+ --> $DIR/issue-84976.rs:17 :14
99 |
1010LL | length = foo(&length);
1111 | ^^^^^^^^^^^^ expected `u32`, found `i32`
1212
1313error[E0308]: mismatched types
14- --> $DIR/issue-84976.rs:17 :22
14+ --> $DIR/issue-84976.rs:21 :22
1515 |
1616LL | float_length = { bar(&float_length) };
1717 | ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
1818
1919error[E0308]: mismatched types
20- --> $DIR/issue-84976.rs:19 :20
20+ --> $DIR/issue-84976.rs:23 :20
2121 |
2222LL | float_length = bar(&float_length);
2323 | ^^^^^^^^^^^^^^^^^^ expected `f32`, found `f64`
You can’t perform that action at this time.
0 commit comments