Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
5f6fa960c254dfda8ba1d5dc2fb281b6908d8005
/
.
/
tests
/
ui
/
statics
/
issue-17718-static-sync.rs
blob: 6f278d76bb18b7a1fc6849f872ef298c27252bb8 [
file
]
#![
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
()
{}