Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
binding
/
borrowed-ptr-pattern-3.rs
blob: 2e3680b76c862ed9c9c8747b1e5e7dbc05c3f30a [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
fn
foo
<
'r>(s: &'
r usize
)
->
bool
{
match
s
{
&
3
=>
true
,
_
=>
false
}
}
pub
fn
main
()
{
assert
!(
foo
(&
3
));
assert
!(!
foo
(&
4
));
}