Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
issues
/
issue-17718-static-sync.rs
blob: 6f278d76bb18b7a1fc6849f872ef298c27252bb8 [
file
] [
log
] [
blame
]
#![
feature
(
negative_impls
)]
use
std
::
marker
::
Sync
;
struct
Foo
;
impl
!
Sync
for
Foo
{}
static
FOO
:
usize
=
3
;
static
BAR
:
Foo
=
Foo
;
//~^ ERROR: `Foo` cannot be shared between threads safely [E0277]
fn
main
()
{}