Sign in
rust
/
rust
/
dc9879cb3d3446c41b6d7d6813b7bfd17da1134f
/
.
/
tests
/
ui
/
statics
/
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
()
{}