about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-08-22 19:20:08 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-09-01 22:29:25 +0000
commit48a435a90fb227f0da20b610438618dfc2c49a4e (patch)
treea367507df07978cfb271b3a5b5108a21f77501df
parent933f4717104aba3af71ced7e5a513f8c0bd6077a (diff)
downloadrust-48a435a90fb227f0da20b610438618dfc2c49a4e.tar.gz
rust-48a435a90fb227f0da20b610438618dfc2c49a4e.zip
Fix test `compile-fail/task-rng-isnt-sendable.rs`.
-rw-r--r--src/test/compile-fail/task-rng-isnt-sendable.rs4
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
 }