We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a69db5 commit a4d88daCopy full SHA for a4d88da
src/comp/middle/ty.rs
@@ -1943,7 +1943,12 @@ mod unify {
1943
alt (struct(cx.tcx, expected)) {
1944
case (ty::ty_var(?expected_id)) {
1945
auto expected_n = expected_id as uint;
1946
- union(cx, expected_n, actual_n);
+ alt(union(cx, expected_n, actual_n)) {
1947
+ case (unres_ok) { /* fall through */ }
1948
+ case (unres_err(?t_e)) {
1949
+ ret ures_err(t_e);
1950
+ }
1951
1952
}
1953
case (_) {
1954
src/test/compile-fail/binop-typeck.rs
@@ -0,0 +1,9 @@
1
+// xfail-stage0
2
+// error-pattern:mismatched types
3
+// issue #500
4
+
5
+fn main() {
6
+ auto x = true;
7
+ auto y = 1;
8
+ auto z = x + y;
9
+}
0 commit comments