about summary refs log tree commit diff
path: root/tests/ui/integral-variable-unification-error.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/integral-variable-unification-error.stderr')
-rw-r--r--tests/ui/integral-variable-unification-error.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/integral-variable-unification-error.stderr b/tests/ui/integral-variable-unification-error.stderr
new file mode 100644
index 00000000000..f77c265a2ad
--- /dev/null
+++ b/tests/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`.