Skip to content

Commit a204554

Browse files
committed
Verify that Send + Sync is implemented for Error
1 parent ca866b6 commit a204554

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@ mod test_misc {
221221

222222
use crate::opts;
223223

224+
#[allow(dead_code)]
225+
fn error_should_implement_send_and_sync() {
226+
fn _dummy<T: Send + Sync>(_: T) {}
227+
_dummy(crate::error::Error::from("foo"));
228+
}
229+
224230
lazy_static! {
225231
pub static ref DATABASE_URL: String = {
226232
if let Ok(url) = env::var("DATABASE_URL") {

0 commit comments

Comments
 (0)