Skip to content

Commit d9e73e4

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 171696 b: refs/heads/beta c: 3fdd4b3 h: refs/heads/master v: v3
1 parent fe1fbe8 commit d9e73e4

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 41df05dd0e42b4f1c4f1b834219f3aafe02d4419
34+
refs/heads/beta: 3fdd4b366acb23aa0fe17a844fc78cd545e56da8
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/src/librand/lib.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#![feature(macro_rules, phase, globs)]
2727
#![feature(unboxed_closures)]
28+
#![feature(associated_types)]
2829
#![no_std]
2930
#![experimental]
3031

@@ -314,7 +315,9 @@ pub struct Generator<'a, T, R:'a> {
314315
rng: &'a mut R,
315316
}
316317

317-
impl<'a, T: Rand, R: Rng> Iterator<T> for Generator<'a, T, R> {
318+
impl<'a, T: Rand, R: Rng> Iterator for Generator<'a, T, R> {
319+
type Item = T;
320+
318321
fn next(&mut self) -> Option<T> {
319322
Some(self.rng.gen())
320323
}
@@ -327,7 +330,9 @@ pub struct AsciiGenerator<'a, R:'a> {
327330
rng: &'a mut R,
328331
}
329332

330-
impl<'a, R: Rng> Iterator<char> for AsciiGenerator<'a, R> {
333+
impl<'a, R: Rng> Iterator for AsciiGenerator<'a, R> {
334+
type Item = char;
335+
331336
fn next(&mut self) -> Option<char> {
332337
static GEN_ASCII_STR_CHARSET: &'static [u8] =
333338
b"ABCDEFGHIJKLMNOPQRSTUVWXYZ\

0 commit comments

Comments
 (0)