Debian Codegraph @

third_party/rust/anyhow/tests/test_autotrait.rs

raw
1 use anyhow::Error;
2
3 #[test]
4 fn test_send() {
5 fn assert_send<T: Send>() {}
6 assert_send::<Error>();
7 }
8
9 #[test]
10 fn test_sync() {
11 fn assert_sync<T: Sync>() {}
12 assert_sync::<Error>();
13 }