Skip to content

Commit 48a435a

Browse files
committed
Fix test compile-fail/task-rng-isnt-sendable.rs.
1 parent 933f471 commit 48a435a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
// ensure that the ThreadRng isn't/doesn't become accidentally sendable.
1212

13-
use std::rand; //~ ERROR: module `rand` is private
13+
use std::__rand::ThreadRng;
1414

1515
fn test_send<S: Send>() {}
1616

1717
pub fn main() {
18-
test_send::<rand::ThreadRng>();
18+
test_send::<ThreadRng>(); //~ ERROR std::marker::Send` is not satisfied
1919
}

0 commit comments

Comments
 (0)