by fnord77 · 8y ago · 0 comments
Also sometimes I just let the compiler tell me by forcing the let variable to something that it is obviously not:
`let not_a_string: String = get_something_that_I_have_no_idea();`
error [4242]: expected type String, found type &*YouWouldNeverHaveGuessed
It’s a trick I used quite a bit when playing about with rust, and Kotlin actually.
Alt + Enter should invoke intentions pop up, you can do it from there. (I think)
Ha! Very clever! Thanks.