Sign in
fuchsia
/
third_party
/
rust
/
a8aa5114bf13d9c6b2b870c5bf63eab8e70a0018
/
.
/
src
/
test
/
ui
/
consts
/
promote_const_let.rs
blob: 51a0fec2e7bfe61ea525265cb0bf80ef0f68304b [
file
] [
log
] [
blame
]
fn
main
()
{
let
x
:
&
'
static
u32
=
{
let
y
=
42
;
&
y
//~ ERROR does not live long enough
};
let
x
:
&
'
static
u32
=
&{
//~ ERROR temporary value dropped while borrowed
let
y
=
42
;
y
};
}