rust/src/test/run-pass/lib-rand.rs

31 lines
474 B
Rust
Raw Normal View History

// xfail-stage0
// xfail-stage1
// xfail-stage2
// -*- rust -*-
use std;
import std.Rand;
fn main() {
let Rand.rng r1 = Rand.mk_rng();
log r1.next();
log r1.next();
{
auto r2 = Rand.mk_rng();
log r1.next();
log r2.next();
log r1.next();
log r1.next();
log r2.next();
log r2.next();
log r1.next();
log r1.next();
log r1.next();
log r2.next();
log r2.next();
log r2.next();
}
log r1.next();
log r1.next();
}