Skip to content

Commit

Permalink
Add test ensuring send & sync are impled
Browse files Browse the repository at this point in the history
  • Loading branch information
BigWingBeat committed Apr 6, 2024
1 parent c1ac8ea commit 3c9b92e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quinn-proto/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2820,3 +2820,10 @@ fn reject_manually() {
}) if close.error_code == TransportErrorCode::CONNECTION_REFUSED
));
}

#[test]
fn endpoint_and_connection_impl_send_sync() {
const fn is_send_sync<T: Send + Sync>() {}
is_send_sync::<Endpoint>();
is_send_sync::<Connection>();
}

0 comments on commit 3c9b92e

Please sign in to comment.