4 ms·
Unfortunately that is not always the case. This fails to compile, for example (and is fairly irritating): let my_str = "Hello".to_owned(); match &my_st
by Measter 6y ago
Unfortunately that is not always the case. This fails to compile, for example (and is fairly irritating):
let my_str = "Hello".to_owned();
match &my_str {
"Hello" => (),
_ => ()
}