about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ast.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 12432c8c78f..4606e70d83b 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1662,6 +1662,7 @@ mod test {
     use serialize;
     use codemap::*;
     use super::*;
+    use std::fmt;
 
     // are ASTs encodable?
     #[test]
@@ -1687,6 +1688,6 @@ mod test {
             exported_macros: Vec::new(),
         };
         // doesn't matter which encoder we use....
-        let _f = &e as &serialize::Encodable<json::Encoder, io::IoError>;
+        let _f = &e as &serialize::Encodable<json::Encoder, fmt::Error>;
     }
 }