Closed
Description
fn main() {
let a = "a";
a += { "b" }; // oops
}
This causes ICE as well as normal error:
a.rs:3:4: 3:16 error: binary operation + cannot be applied to type `&'static str`
a.rs:3 a += { "b" }; // oops
^~~~~~~~~~~~
error: internal compiler error: no type for node 16: block { "b" } (id=16) in fcx 0x7fdaac1165b0
As a consequence, a += format!(...);
triggers same error. Same for a += {};
.
Activity
alexcrichton commentedon Mar 1, 2014
This has been fixed, flagging as needstest.
test: Add some tests for closed issues
auto merge of #12738 : alexcrichton/rust/needstest, r=brson,just
Auto merge of rust-lang#10401 - samueltardieu:issue-10148, r=Alexendoo