code: import std.stdio; import std.range; import std.random; void main(){ Random r = rndGen(); foreach(i; take(r,5)){ writeln("hi ",i); } } gives: /usr/lib/dmd-2.047/src/phobos/std/range.d(1289): Error: template std.range.moveFront(R) if (is(typeof(&r.front()) == ElementType!(R)*)) does not match any function template declaration /usr/lib/dmd-2.047/src/phobos/std/range.d(1289): Error: template std.range.moveFront(R) if (is(typeof(&r.front()) == ElementType!(R)*)) cannot deduce template function from argument types !()(MersenneTwisterEngine!(uint,32,624,397,31,-1727483681u,11,7,-1658038656u,15,-272236544u,18))
Fixed 2.048