Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-17718-static-move.rs
blob: 015487a06aafeab403ccb40da3d5ab38e9c84f6d [
file
] [
log
] [
blame
]
struct
Foo
;
const
INIT
:
Foo
=
Foo
;
static
FOO
:
Foo
=
INIT
;
fn
main
()
{
let
_a
=
FOO
;
//~ ERROR: cannot move out of static item
}