Sign in
android
/
toolchain
/
rustc
/
f7ad1c480b8dc4097ef67cd82ec1c5b706e10950
/
.
/
src
/
test
/
ui
/
binding
/
borrowed-ptr-pattern-2.rs
blob: 40df85b1479b4dfa40313c6c0940494354d55ddc [
file
] [
log
] [
blame
]
// 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
()));
}