Created
November 24, 2016 09:37
-
-
Save anonymous/30866837ec27fc5d397178b5317a4902 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
fn into_vec<T: Into<Vec<u8>>>(t: T) { | |
println!("{:?}", t.into()); | |
} | |
fn main() { | |
into_vec("hello world"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment