blob: ba80cc49477b7fdaddb33e809d7023afa7012a67 [file] [log] [blame] [edit]
//@ run-pass
fn foo(s: &String) -> bool {
match &**s {
"kitty" => true,
_ => false
}
}
pub fn main() {
assert!(foo(&"kitty".to_string()));
assert!(!foo(&"gata".to_string()));
}