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