diff --git a/src/lib.rs b/src/lib.rs index 9fa66ce..76fa645 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -50,6 +50,7 @@ #![feature(globs)] #![feature(unsafe_destructor)] #![feature(macro_rules)] +#![feature(associated_types)] extern crate libc; @@ -564,7 +565,9 @@ impl<'stmt> SqliteRows<'stmt> { } } -impl<'stmt> Iterator>> for SqliteRows<'stmt> { +impl<'stmt> Iterator for SqliteRows<'stmt> { + type Item = SqliteResult>; + fn next(&mut self) -> Option>> { if self.failed { return None;