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 fd727a4 commit 7948cabCopy full SHA for 7948cab
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 776977b755947dbcb67b439fb7c3779a5cb6766e
+refs/heads/master: c9a8bdee2f777671a30f93339016fae044b1a081
trunk/src/comp/middle/typeck.rs
@@ -1570,6 +1570,11 @@ mod writeback {
1570
}
1571
1572
1573
+ if (ty::type_contains_vars(fcx.ccx.tcx, local_ty)) {
1574
+ fcx.ccx.tcx.sess.span_err(sp,
1575
+ "Ambiguous type " + ty_to_str(fcx.ccx.tcx, local_ty)
1576
+ + "\n(Try adding more type annotations.)");
1577
+ }
1578
write::ty_only(fcx.ccx.tcx, local.ann.id, local_ty);
1579
1580
0 commit comments