diff options
| -rw-r--r-- | src/test/compile-fail/task-rng-isnt-sendable.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/task-rng-isnt-sendable.rs b/src/test/compile-fail/task-rng-isnt-sendable.rs index 9c0a2267d7c..c987d9f2f4e 100644 --- a/src/test/compile-fail/task-rng-isnt-sendable.rs +++ b/src/test/compile-fail/task-rng-isnt-sendable.rs @@ -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 } |
