Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2017 23:32
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/f3bbc5fffaa8fc985f3b5a31a9c26962 to your computer and use it in GitHub Desktop.
Save anonymous/f3bbc5fffaa8fc985f3b5a31a9c26962 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) -> Box<Error> where A: Error {
Box::new(a)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment