Improve type mismatch error messages

Replace "integral variable" with "integer" and replace
"floating-point variable" with "floating-point number" to make the
message less confusing.
This commit is contained in:
Yuning Zhang
2018-12-31 20:43:08 -05:00
parent 6efaef6189
commit 710dcbd381
54 changed files with 105 additions and 105 deletions

View File

@@ -4,5 +4,5 @@ fn main() {
//~^ ERROR mismatched types
//~| expected type `{integer}`
//~| found type `{float}`
//~| expected integral variable, found floating-point variable
//~| expected integer, found floating-point number
}