Any time you have a &String reference, it triggers coercion to &str.
let my_str = "Hello".to_owned(); match &my_str { "Hello" => (), _ => () }