summaryrefslogtreecommitdiffstats
path: root/tests/ui/statics/issue-17718-static-sync.rs
blob: 6f278d76bb18b7a1fc6849f872ef298c27252bb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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() {}