1
Fork 0

Fix test compile-fail/task-rng-isnt-sendable.rs.

This commit is contained in:
Jeffrey Seyfried 2016-08-22 19:20:08 +00:00
parent 933f471710
commit 48a435a90f

View file

@ -10,10 +10,10 @@
// ensure that the ThreadRng isn't/doesn't become accidentally sendable.
use std::rand; //~ ERROR: module `rand` is private
use std::__rand::ThreadRng;
fn test_send<S: Send>() {}
pub fn main() {
test_send::<rand::ThreadRng>();
test_send::<ThreadRng>(); //~ ERROR std::marker::Send` is not satisfied
}