]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17718-static-sync.rs
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-17718-static-sync.rs
CommitLineData
ba9703b0 1#![feature(negative_impls)]
223e47cc 2
85aaf69f
SL
3use std::marker::Sync;
4
5struct Foo;
6impl !Sync for Foo {}
223e47cc 7
1a4d82fc 8static FOO: usize = 3;
85aaf69f 9static BAR: Foo = Foo;
0531ce1d 10//~^ ERROR: `Foo` cannot be shared between threads safely [E0277]
223e47cc
LB
11
12fn main() {}