Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2017 23:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/25c33745481d450eaa96a9b45b443f61 to your computer and use it in GitHub Desktop.
Save anonymous/25c33745481d450eaa96a9b45b443f61 to your computer and use it in GitHub Desktop.
Shared via Rust Playground
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