-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
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 += {};.
Metadata
Metadata
Assignees
Labels
E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.