| 1 |
#![allow(clippy::extra_unused_type_parameters)] |
| 2 |
|
| 3 |
use anyhow::Error; |
| 4 |
use std::panic::{RefUnwindSafe, UnwindSafe}; |
| 5 |
|
| 6 |
#[test] |
| 7 |
fn test_send() { |
| 8 |
fn assert_send<T: Send>() {} |
| 9 |
assert_send::<Error>(); |
| 10 |
} |
| 11 |
|
| 12 |
#[test] |
| 13 |
fn test_sync() { |
| 14 |
fn assert_sync<T: Sync>() {} |
| 15 |
assert_sync::<Error>(); |
| 16 |
} |
| 17 |
|
| 18 |
#[test] |
| 19 |
fn test_unwind_safe() { |
| 20 |
fn assert_unwind_safe<T: UnwindSafe>() {} |
| 21 |
assert_unwind_safe::<Error>(); |
| 22 |
} |
| 23 |
|
| 24 |
#[test] |
| 25 |
fn test_ref_unwind_safe() { |
| 26 |
fn assert_ref_unwind_safe<T: RefUnwindSafe>() {} |
| 27 |
assert_ref_unwind_safe::<Error>(); |
| 28 |
} |
| 29 |
|
| 30 |
#[test] |
| 31 |
fn test_unpin() { |
| 32 |
fn assert_unpin<T: Unpin>() {} |
| 33 |
assert_unpin::<Error>(); |
| 34 |
} |