blob: 431cc2be5d20e3d458af8403b7539d7453f40245 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// run-pass
use std::sync::mpsc::channel;
pub fn main() {
let (tx, rx) = channel::<Box<_>>();
tx.send(Box::new(100)).unwrap();
let v = rx.recv().unwrap();
assert_eq!(v, Box::new(100));
}
|