blob: 107d70a3b3c7f5944a3f2f3d3c4307aa2b6b8e7c [file] [log] [blame] [edit]
//@error-in-other-file: aborted execution
// Backtraces vary wildly between platforms, we have to normalize away almost the entire thing
//@normalize-stderr-test: "'main'|'<unnamed>'" -> "$$NAME"
//@normalize-stderr-test: ".*(note|-->|\|).*\n" -> ""
pub struct NoisyDrop {}
impl Drop for NoisyDrop {
fn drop(&mut self) {
panic!("ow");
}
}
thread_local! {
pub static NOISY: NoisyDrop = NoisyDrop {};
}
fn main() {
NOISY.with(|_| ());
}