We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 139f266 commit a85e414Copy full SHA for a85e414
tests/test_autotrait.rs
@@ -1,6 +1,7 @@
1
#![allow(clippy::extra_unused_type_parameters)]
2
3
use anyhow::Error;
4
+use std::panic::{RefUnwindSafe, UnwindSafe};
5
6
#[test]
7
fn test_send() {
@@ -13,3 +14,21 @@ fn test_sync() {
13
14
fn assert_sync<T: Sync>() {}
15
assert_sync::<Error>();
16
}
17
+
18
+#[test]
19
+fn test_unwind_safe() {
20
+ fn assert_unwind_safe<T: UnwindSafe>() {}
21
+ assert_unwind_safe::<Error>();
22
+}
23
24
25
+fn test_ref_unwind_safe() {
26
+ fn assert_ref_unwind_safe<T: RefUnwindSafe>() {}
27
+ assert_ref_unwind_safe::<Error>();
28
29
30
31
+fn test_unpin() {
32
+ fn assert_unpin<T: Unpin>() {}
33
+ assert_unpin::<Error>();
34
0 commit comments