summaryrefslogtreecommitdiffstats
path: root/vendor/anyhow/tests/test_autotrait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/anyhow/tests/test_autotrait.rs')
-rw-r--r--vendor/anyhow/tests/test_autotrait.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/anyhow/tests/test_autotrait.rs b/vendor/anyhow/tests/test_autotrait.rs
new file mode 100644
index 000000000..0c9326dad
--- /dev/null
+++ b/vendor/anyhow/tests/test_autotrait.rs
@@ -0,0 +1,13 @@
+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>();
+}