Created
September 12, 2019 13:30
-
-
Save pimeys/e8e0ff549b93509eb0778d0d1da72889 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use futures::future::{Future, err}; | |
fn main() { | |
let future = err("CRASH").map_err(|e| panic!("{:?}", e)); | |
tokio::run(future); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment