aboutsummaryrefslogtreecommitdiff
path: root/tests/test_autotrait.rs
blob: 94d7a598477a98955effef9946342eb9f57d17b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(clippy::extra_unused_type_parameters)]

use anyhow::Error;

#[test]
fn test_send() {
    fn assert_send<T: Send>() {}
    assert_send::<Error>();
}

#[test]
fn test_sync() {
    fn assert_sync<T: Sync>() {}
    assert_sync::<Error>();
}