Sign in
fuchsia
/
third_party
/
rust
/
16a8abe1bb159c4f1255533a4969590e3b7e0e61
/
.
/
src
/
test
/
ui
/
linkage2.rs
blob: 6d1410a90bd2171b3fdf98dca6874ddf3e081d7c [
file
] [
log
] [
blame
]
#![
feature
(
linkage
)]
extern
{
#[
linkage
=
"extern_weak"
]
static
foo
:
i32
;
//~^ ERROR: must have type `*const T` or `*mut T`
}
fn
main
()
{
println
!(
"{}"
,
unsafe
{
foo
});
}