use js_promises::*; use std::panic; fn main() { Promise::::new_resolved("asdf".into()) .and_then::(|_res| panic!("oops")) .then::<(),(),_>(|_res| { Ok(PromiseOk::Immediate(())) }) ; }