Skip to content
Myr

Import from std::sync individually for destructors test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent b0e25c5 · Browse files · 1 file+1 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:src/error.rs+1 added-3 removed
309 unmodified lines
310311#[cfg(test)]312mod repr_correctness {313 use super::*;314314 use std::marker::Unpin;315 use std::mem;316 use std::sync::{Arc, Mutex};317318 #[test]319 fn size_of_error() {320 assert_eq!(mem::size_of::<Error>(), mem::size_of::<usize>());
6 unmodified lines
327 }328329 #[test]330 fn destructors_work() {331 use std::sync::*;332331 #[derive(Debug)]332 struct HasDrop(Box<Arc<Mutex<bool>>>);333 impl StdError for HasDrop {}334 impl Display for HasDrop {
19 unmodified lines