Created
October 11, 2018 15:45
-
-
Save shepmaster/cbb9cc7fe3caceb7064e53323f9067e7 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains hidden or 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
| #![feature(try_from)] | |
| use std::convert::TryInto; | |
| fn main() { | |
| let a: Result<u8, _> = 1000u16.try_into(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment