diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-01 22:36:34 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-01-03 09:34:04 -0500 |
| commit | 17cf5e8104691cc6c15e4ea2e284c52a7b6760da (patch) | |
| tree | 5d9d341036ab3c70a90702667ee132bf53ed7bdd /src | |
| parent | 9d36a2d59322b236e6a4b47c23a323f87e5d82b2 (diff) | |
| download | rust-17cf5e8104691cc6c15e4ea2e284c52a7b6760da.tar.gz rust-17cf5e8104691cc6c15e4ea2e284c52a7b6760da.zip | |
fmt_macros: fix fallout
Diffstat (limited to 'src')
| -rw-r--r-- | src/libfmt_macros/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<string::String>, } -impl<'a> Iterator<Piece<'a>> for Parser<'a> { +impl<'a> Iterator for Parser<'a> { + type Item = Piece<'a>; + fn next(&mut self) -> Option<Piece<'a>> { match self.cur.clone().next() { Some((pos, '{')) => { |
