mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Fix test compile-fail/task-rng-isnt-sendable.rs.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user