Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
regions
/
regions-infer-call.rs
blob: 248f9e923d32a1dcc053ee4aa0b7f1d3af02afa2 [
file
] [
log
] [
blame
]
// run-pass
fn
takes_two
(
x
:
&
isize
,
y
:
&
isize
)
->
isize
{
*
x
+
*
y
}
fn
has_two
<
'a,'
b
>(
x
:
&
'a isize, y: &'
b isize
)
->
isize
{
takes_two
(
x
,
y
)
}
pub
fn
main
()
{
assert_eq
!(
has_two
(&
20
,
&
2
),
22
);
}