File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1485,9 +1485,10 @@ fn _assert_sync_and_send() {
1485
1485
mod tests {
1486
1486
use super :: Builder ;
1487
1487
use crate :: any:: Any ;
1488
+ use crate :: mem;
1488
1489
use crate :: sync:: mpsc:: { channel, Sender } ;
1489
1490
use crate :: result;
1490
- use crate :: thread;
1491
+ use crate :: thread:: { self , ThreadId } ;
1491
1492
use crate :: time:: Duration ;
1492
1493
use crate :: u32;
1493
1494
@@ -1717,6 +1718,11 @@ mod tests {
1717
1718
thread:: sleep ( Duration :: from_millis ( 2 ) ) ;
1718
1719
}
1719
1720
1721
+ #[ test]
1722
+ fn test_size_of_option_thread_id ( ) {
1723
+ assert_eq ! ( mem:: size_of:: <Option <ThreadId >>( ) , mem:: size_of:: <ThreadId >( ) ) ;
1724
+ }
1725
+
1720
1726
#[ test]
1721
1727
fn test_thread_id_equal ( ) {
1722
1728
assert ! ( thread:: current( ) . id( ) == thread:: current( ) . id( ) ) ;
You can’t perform that action at this time.
0 commit comments