From 17cf5e8104691cc6c15e4ea2e284c52a7b6760da Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 1 Jan 2015 22:36:34 -0500 Subject: fmt_macros: fix fallout --- src/libfmt_macros/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libfmt_macros/lib.rs b/src/libfmt_macros/lib.rs index c284fb7c9e3..ecb657b5a2b 100644 --- a/src/libfmt_macros/lib.rs +++ b/src/libfmt_macros/lib.rs @@ -24,6 +24,7 @@ html_playground_url = "http://play.rust-lang.org/")] #![feature(macro_rules, globs, slicing_syntax)] +#![feature(associated_types)] pub use self::Piece::*; pub use self::Position::*; @@ -142,7 +143,9 @@ pub struct Parser<'a> { pub errors: Vec, } -impl<'a> Iterator> for Parser<'a> { +impl<'a> Iterator for Parser<'a> { + type Item = Piece<'a>; + fn next(&mut self) -> Option> { match self.cur.clone().next() { Some((pos, '{')) => { -- cgit 1.4.1-3-g733a5