Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
nll
/
issue-69114-static-ty.rs
blob: 3318433a1c56f5598db7a991db6551b9d4a4b09a [
file
] [
log
] [
blame
]
// Check that borrowck ensures that `static` items have the expected type.
static
FOO
:
&
'static (dyn Fn(&'
static
u8
)
+
Send
+
Sync
)
=
&
drop
;
fn
main
()
{
let
n
=
42
;
FOO
(&
n
);
//~^ ERROR does not live long enough
}