$ rustc test.rs
test.rs:5:19: 5:24 error: unresolved name `Test1`.
test.rs:5 let x: Test = Test1;
^~~~~
error: aborting due to previous error
$ rustc --version
rustc 0.13.0-nightly (399ff259e 2014-11-20 00:27:07 +0000)
Last active
August 29, 2015 14:10
-
-
Save daboross/610259c04e14d56ada79 to your computer and use it in GitHub Desktop.
Rust help
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
enum Test { | |
Test1, | |
} | |
fn main() { | |
let x: Test = Test1; | |
match x { | |
Test1 => println!("Hi"), | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment