2020-01-09 05:56:38 -05:00
|
|
|
#![feature(negative_impls)]
|
2014-10-06 21:16:35 -07:00
|
|
|
|
2015-01-11 13:14:39 +01:00
|
|
|
use std::marker::Sync;
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
impl !Sync for Foo {}
|
2014-10-06 21:16:35 -07:00
|
|
|
|
2015-01-08 22:02:42 +11:00
|
|
|
static FOO: usize = 3;
|
2015-01-11 13:14:39 +01:00
|
|
|
static BAR: Foo = Foo;
|
2018-02-10 21:01:49 -08:00
|
|
|
//~^ ERROR: `Foo` cannot be shared between threads safely [E0277]
|
2014-10-06 21:16:35 -07:00
|
|
|
|
|
|
|
fn main() {}
|