summaryrefslogtreecommitdiffstats
path: root/src/test/ui/integral-variable-unification-error.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/integral-variable-unification-error.stderr')
-rw-r--r--src/test/ui/integral-variable-unification-error.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/integral-variable-unification-error.stderr b/src/test/ui/integral-variable-unification-error.stderr
new file mode 100644
index 000000000..f77c265a2
--- /dev/null
+++ b/src/test/ui/integral-variable-unification-error.stderr
@@ -0,0 +1,14 @@
+error[E0308]: mismatched types
+ --> $DIR/integral-variable-unification-error.rs:5:9
+ |
+LL | let mut x
+ | ----- expected due to the type of this binding
+LL | =
+LL | 2;
+ | - expected due to this value
+LL | x = 5.0;
+ | ^^^ expected integer, found floating-point number
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0308`.