Skip to content

Instantly share code, notes, and snippets.

@pinkforest
Created March 18, 2024 10:23
Show Gist options
  • Save pinkforest/2901beaeced14f5d09c82f07ed68f604 to your computer and use it in GitHub Desktop.
Save pinkforest/2901beaeced14f5d09c82f07ed68f604 to your computer and use it in GitHub Desktop.
panic downcast_ref Any
/*
match server_thread.join() {
Ok(_) => panic!("should not return w/o panic"),
Err(e) => assert_eq!(e.downcast_ref::<&str>(), Some("COMPLETE").as_ref()),
//panic!("err.. {:?}", e),
} */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment