Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
statics
/
issue-17718-static-sync.rs
blob: 6f278d76bb18b7a1fc6849f872ef298c27252bb8 [
file
] [
log
] [
blame
] [
edit
]
#![
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
()
{}