Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
86e0ff47a0d1afcbe9f0c8cdb54f60bb18da20df
/
.
/
src
/
test
/
ui
/
parser
/
foreign-static-semantic-fail.rs
blob: 3d427ed0efdfc82900ae6ec065f90f7020ba0ca0 [
file
] [
log
] [
blame
]
// Syntactically, a foreign static may not have a body.
fn
main
()
{}
extern
"C"
{
static
X
:
u8
=
0
;
//~ ERROR incorrect `static` inside `extern` block
static
mut
Y
:
u8
=
0
;
//~ ERROR incorrect `static` inside `extern` block
}