From: bors Date: Thu, 29 Aug 2013 03:30:36 +0000 (-0700) Subject: auto merge of #8800 : fhahn/rust/ticket_5239, r=alexcrichton X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=89d04009c160b7a88b03f42c633220457bd72a09;p=rust.git auto merge of #8800 : fhahn/rust/ticket_5239, r=alexcrichton I've added a test for the second example mentioned in #5239. The first example does not compile with a reasonable error message. Should I add a compile-fail test for that example as well? /rust/src/test/run-pass/issue-5239.rs:15:45: 15:51 error: binary operation + cannot be applied to type `&int` rust/src/test/run-pass/issue-5239.rs:15 let _f = |ref x: int| { x += 1}; ^~~~~~ error: aborting due to previous error --- 89d04009c160b7a88b03f42c633220457bd72a09