Fix test compile-fail/task-rng-isnt-sendable.rs
.
This commit is contained in:
parent
933f471710
commit
48a435a90f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue