Skip to content

Instantly share code, notes, and snippets.

@daboross
Last active August 29, 2015 14:10
Show Gist options
  • Save daboross/610259c04e14d56ada79 to your computer and use it in GitHub Desktop.
Save daboross/610259c04e14d56ada79 to your computer and use it in GitHub Desktop.
Rust help
$ 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)
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