Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
issues
/
issue-17718-constants-not-static.rs
blob: e857b906efa7be3576b7d620dd4c517e8ef28775 [
file
] [
log
] [
blame
]
fn
id
<
T
>(
x
:
T
)
->
T
{
x
}
const
FOO
:
usize
=
3
;
fn
foo
()
->
&
'
static
usize
{
&
id
(
FOO
)
}
//~^ ERROR: borrowed value does not live long enough
fn
main
()
{
}