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 authored and Ralith committed Apr 9, 2024
1 parent 33c6bde commit 88f48b0
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 @@ -2828,3 +2828,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 88f48b0

Please sign in to comment.