Sign in
fuchsia
/
third_party
/
rust
/
8c93798e9f80d6d6ed9a2ab4b01af06a8fea23b7
/
.
/
src
/
test
/
ui
/
nll
/
issue-52663-trait-object.rs
blob: 121c3ef4e610981e2d9a9ac8653419b4d0e7a9b0 [
file
] [
log
] [
blame
]
#![
feature
(
box_syntax
)]
#![
feature
(
nll
)]
trait
Foo
{
fn
get
(&
self
);
}
impl
<
A
>
Foo
for
A
{
fn
get
(&
self
)
{
}
}
fn
main
()
{
let
_
=
{
let
tmp0
=
3
;
let
tmp1
=
&
tmp0
;
box tmp1
as
Box
<
Foo
+
'
_
>
};
//~^^^ ERROR `tmp0` does not live long enough
}