rustc_typeck: fix binops needing more type informations to coerce.

This commit is contained in:
Eduard-Mihai Burtescu 2017-04-16 06:25:18 +03:00
parent 3725cab5ac
commit cd64ff9438
2 changed files with 6 additions and 0 deletions

View File

@ -411,6 +411,8 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
match method {
Some(ok) => {
let method = self.register_infer_ok_obligations(ok);
self.select_obligations_where_possible();
let method_ty = method.ty;
// HACK(eddyb) Fully qualified path to work around a resolve bug.

View File

@ -68,4 +68,8 @@ fn use_vec_ref(v: &Vec<u8>) {
use_slice(&&&mut &&&v);
}
fn use_op_rhs(s: &mut String) {
*s += {&String::from(" ")};
}
pub fn main() {}