core::rt: Add a test that rng works with new tasks
This commit is contained in:
parent
21aaa7fb13
commit
3b6a32d7c9
@ -220,4 +220,13 @@ mod test {
|
||||
assert!(result.is_err());
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rng() {
|
||||
do run_in_newsched_task() {
|
||||
use rand::{rng, Rng};
|
||||
let r = rng();
|
||||
let _ = r.next();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user