Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
nll
/
issue-52663-trait-object.rs
blob: a7be365bde4bdf78c9c4da1d8b0d9a45b25e4454 [
file
] [
log
] [
blame
]
#![
feature
(
box_syntax
)]
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
<
dyn
Foo
+
'
_
>
};
//~^^^ ERROR `tmp0` does not live long enough
}