Created
February 23, 2017 23:46
-
-
Save anonymous/25c33745481d450eaa96a9b45b443f61 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
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 std::error::Error; | |
fn main() { | |
println!("Hello, world!"); | |
} | |
fn foo<'a, A>(a: A) -> Box<Error + 'a> | |
where A: Error + 'a | |
{ | |
Box::new(a) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment