Skip to content

Commit

Permalink
Test that Context is Send
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc committed Jun 7, 2021
1 parent 7a5afd5 commit 4301c2f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1712,3 +1712,12 @@ pub struct Location<'a> {
/// The column number.
pub column: Option<u32>,
}

#[cfg(test)]
mod tests {
#[test]
fn context_is_send() {
fn assert_is_send<T: Send>() {}
assert_is_send::<crate::Context<gimli::read::EndianSlice<gimli::LittleEndian>>>();
}
}

0 comments on commit 4301c2f

Please sign in to comment.