mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 04:05:27 +00:00
35 lines
631 B
Rust
35 lines
631 B
Rust
#![allow(clippy::extra_unused_type_parameters)]
|
|
|
|
use anyhow::Error;
|
|
use std::panic::{RefUnwindSafe, UnwindSafe};
|
|
|
|
#[test]
|
|
fn test_send() {
|
|
fn assert_send<T: Send>() {}
|
|
assert_send::<Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn test_sync() {
|
|
fn assert_sync<T: Sync>() {}
|
|
assert_sync::<Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn test_unwind_safe() {
|
|
fn assert_unwind_safe<T: UnwindSafe>() {}
|
|
assert_unwind_safe::<Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn test_ref_unwind_safe() {
|
|
fn assert_ref_unwind_safe<T: RefUnwindSafe>() {}
|
|
assert_ref_unwind_safe::<Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn test_unpin() {
|
|
fn assert_unpin<T: Unpin>() {}
|
|
assert_unpin::<Error>();
|
|
}
|