| 1 |
use ghost::phantom; |
| 2 |
|
| 3 |
#[phantom] |
| 4 |
pub struct MyPhantom<T>; |
| 5 |
|
| 6 |
// Test that #[phantom] doesn't contain its own explicit autotrait impls, which |
| 7 |
// would conflict with the following. |
| 8 |
unsafe impl<T> Send for MyPhantom<T> {} |
| 9 |
unsafe impl<T> Sync for MyPhantom<T> {} |