Created
February 23, 2017 23:32
-
-
Save anonymous/f3bbc5fffaa8fc985f3b5a31a9c26962 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) -> 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