]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/c_str.rs
std: fix fallout
[rust.git] / src / libstd / c_str.rs
index b1433ad7fdc625d249da00d8e076177b9153c576..834a9f082d03a5bd24be835120bf53f45231a467 100644 (file)
@@ -504,7 +504,9 @@ pub struct CChars<'a> {
     marker: marker::ContravariantLifetime<'a>,
 }
 
-impl<'a> Iterator<libc::c_char> for CChars<'a> {
+impl<'a> Iterator for CChars<'a> {
+    type Item = libc::c_char;
+
     fn next(&mut self) -> Option<libc::c_char> {
         let ch = unsafe { *self.ptr };
         if ch == 0 {