File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -349,6 +349,8 @@ mod tests {
349349 use crate :: transport:: partitioner:: PartitionerName ;
350350 use crate :: transport:: session:: Session ;
351351 use crate :: utils:: test_utils:: unique_keyspace_name;
352+ #[ allow( deprecated) ]
353+ use crate :: LegacyCachingSession ;
352354 use crate :: {
353355 batch:: { Batch , BatchStatement } ,
354356 prepared_statement:: PreparedStatement ,
@@ -780,4 +782,12 @@ mod tests {
780782 verify_partitioner ( ) . await ;
781783 verify_partitioner ( ) . await ;
782784 }
785+
786+ // NOTE: intentionally no `#[test]`: this is a compile-time test
787+ fn _caching_session_impls_debug ( ) {
788+ fn assert_debug < T : std:: fmt:: Debug > ( ) { }
789+ assert_debug :: < CachingSession > ( ) ;
790+ #[ allow( deprecated) ]
791+ assert_debug :: < LegacyCachingSession > ( ) ;
792+ }
783793}
You can’t perform that action at this time.
0 commit comments