Sha256: ba9bc18416115cb48fd08675a3e7fc89584de7926dad6b2be6645dc13d5931df

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

#![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>();
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/anyhow-1.0.95/tests/test_autotrait.rs
wasmtime-28.0.0 ./ext/cargo-vendor/anyhow-1.0.95/tests/test_autotrait.rs
wasmtime-27.0.0 ./ext/cargo-vendor/anyhow-1.0.93/tests/test_autotrait.rs
wasmtime-26.0.0 ./ext/cargo-vendor/anyhow-1.0.91/tests/test_autotrait.rs
wasmtime-25.0.2 ./ext/cargo-vendor/anyhow-1.0.89/tests/test_autotrait.rs