You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 += {};.
cc #9942 and #10091 since they just share same ICE message.
The text was updated successfully, but these errors were encountered:
Do not panic when analyzing the malformed origin of a format string
Fixesrust-lang#10148. This will trigger only when generating format strings while accepting weird things in a procedural macro and setting the span to something which is not a string.
changelog: none
This causes ICE as well as normal error:
As a consequence,
a += format!(...);
triggers same error. Same fora += {};
.cc #9942 and #10091 since they just share same ICE message.
The text was updated successfully, but these errors were encountered: