about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-10-02 14:49:42 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-10-02 14:49:42 -0700
commit8bb5a674a434da86de499113d2c6bce1ffd23d8a (patch)
tree4155e4ac5a90d0495241084952ac6c558ff8c002 /src/libcore
parent4c8d0334ee480d54b6917e780cfa2da3747ecfc1 (diff)
parent49e593c3d6494e210c215b4d353270616450980f (diff)
downloadrust-8bb5a674a434da86de499113d2c6bce1ffd23d8a.tar.gz
rust-8bb5a674a434da86de499113d2c6bce1ffd23d8a.zip
rollup merge of #16993 : dschatzberg/items-bounds
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index 1a00107a216..9f925f9d371 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -1218,7 +1218,7 @@ macro_rules! iterator {
 
 /// Immutable slice iterator
 #[experimental = "needs review"]
-pub struct Items<'a, T> {
+pub struct Items<'a, T: 'a> {
     ptr: *const T,
     end: *const T,
     marker: marker::ContravariantLifetime<'a>
@@ -1261,7 +1261,7 @@ impl<'a, T> RandomAccessIterator<&'a T> for Items<'a, T> {
 
 /// Mutable slice iterator.
 #[experimental = "needs review"]
-pub struct MutItems<'a, T> {
+pub struct MutItems<'a, T: 'a> {
     ptr: *mut T,
     end: *mut T,
     marker: marker::ContravariantLifetime<'a>,