Use rust they said… It's awesome they said…

I never failed so hard on merging two strings together in any other language…, even C is trivial here by using the strcpy. Not without danger, but trivial.

Maybe someone has mercy and can explain my what I'm doing wrong? 😥

git.shivering-isles.com/sheogo

#rust #frustration

Follow

@r3pek @sheogorath You've made two mistakes in the result definition. "" is "&'static str" not String. And it has to be mutable for "+ &str" to work.

@mike

Thank you so much! That was a kind of weird situation I was in there .-. This explanation makes it clear.

@r3pek

Sign in to participate in the conversation
x0r.be

Exclusive or something