Hi i want to match multiple string example something like
let st : String = "Test".to_string();
match &st {
"Test" => { Do something }
"Test2" => { Do something 2}
_ => panic!(.....)
}
but this doesn't work.... if i try below it works no errors:
match st {
_ => println("Some string found!")
}
help !
Thanks in advance
Bijju