Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
borrowck
/
alias-liveness
/
rpitit-static.rs
blob: 2cc68d2bf3d81e638e0651175acb5d36c94aa918 [
file
] [
log
] [
blame
]
// check-pass
trait
Foo
{
fn
rpitit
(&
mut
self
)
->
impl
Sized
+
'
static
;
}
fn
live_past_borrow
<
T
:
Foo
>(
mut
t
:
T
)
{
let
x
=
t
.
rpitit
();
drop
(
t
);
drop
(
x
);
}
fn
overlapping_mut
<
T
:
Foo
>(
mut
t
:
T
)
{
let
a
=
t
.
rpitit
();
let
b
=
t
.
rpitit
();
}
fn
main
()
{}