]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/enum-discr.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / enum-discr.rs
index 5fe8bb27e15492d55b3c3d7c3861c174b64b4a68..97997bec2616a085a74ae65baf669704179e53cc 100644 (file)
@@ -23,8 +23,8 @@ enum Hero {
 }
 
 pub fn main() {
-    let pet: Animal = Snake;
-    let hero: Hero = Superman;
+    let pet: Animal = Animal::Snake;
+    let hero: Hero = Hero::Superman;
     assert!(pet as uint == 3);
     assert!(hero as int == -2);
 }