about summary refs log tree commit diff
path: root/src/test/ui/integral-variable-unification-error.rs
diff options
context:
space:
mode:
authorYuning Zhang <codeworm96@outlook.com>2018-12-31 20:43:08 -0500
committerYuning Zhang <codeworm96@outlook.com>2018-12-31 20:43:08 -0500
commit710dcbd3818deca8f193a45e321b58af3c24feae (patch)
tree0bb5f760a042393b0e4eb583f1b776f3cd196ba7 /src/test/ui/integral-variable-unification-error.rs
parent6efaef61899f6551914156f69809aa7d5854399d (diff)
downloadrust-710dcbd3818deca8f193a45e321b58af3c24feae.tar.gz
rust-710dcbd3818deca8f193a45e321b58af3c24feae.zip
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.
Diffstat (limited to 'src/test/ui/integral-variable-unification-error.rs')
-rw-r--r--src/test/ui/integral-variable-unification-error.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/integral-variable-unification-error.rs b/src/test/ui/integral-variable-unification-error.rs
index 98a77e9c82f..3eefcdea3d9 100644
--- a/src/test/ui/integral-variable-unification-error.rs
+++ b/src/test/ui/integral-variable-unification-error.rs
@@ -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
 }