Sign in
fuchsia
/
third_party
/
rust
/
daafeb35b731a599fc8b6c4cf37b81f838dae319
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-thread-local-static-borrow-outlives-fn.rs
blob: 1cf8d187c25f4001a51510608b332cb96a6b1cc4 [
file
] [
log
] [
blame
]
#![
feature
(
thread_local
)]
#[
thread_local
]
static
FOO
:
u8
=
3
;
fn
assert_static
(
_t
:
&
'
static
u8
)
{}
fn
main
()
{
assert_static
(&
FOO
);
//~ ERROR [E0712]
}