about summary refs log tree commit diff
path: root/src/test/compile-fail/class-cast-to-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/class-cast-to-trait.rs')
-rw-r--r--src/test/compile-fail/class-cast-to-trait.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test/compile-fail/class-cast-to-trait.rs b/src/test/compile-fail/class-cast-to-trait.rs
index 8df9650d950..7f7c58a60df 100644
--- a/src/test/compile-fail/class-cast-to-trait.rs
+++ b/src/test/compile-fail/class-cast-to-trait.rs
@@ -19,9 +19,8 @@ struct cat {
   name : ~str,
 }
 
-pub impl cat {
-
-  fn eat(&self) -> bool {
+impl cat {
+  pub fn eat(&self) -> bool {
     if self.how_hungry > 0 {
         error!("OM NOM NOM");
         self.how_hungry -= 2;
@@ -39,7 +38,7 @@ impl noisy for cat {
 
 }
 
-priv impl cat {
+impl cat {
     fn meow(&self) {
       error!("Meow");
       self.meows += 1;