blob: 9cfbee5f1e97567ca6c21b6d47f49410c7613a57 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 | use std::marker::PhantomData;
struct AssertSync<T: Sync>(PhantomData<T>);
pub struct Foo {
    bar: *const Bar,
    phantom: PhantomData<Bar>,
}
pub struct Bar {
    foo: *const Foo,
    phantom: PhantomData<Foo>,
}
fn main() {
    let _: AssertSync<Foo> = unimplemented!();
    //~^ ERROR E0277
    //~| ERROR E0277
}
 |