]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-send.rs
Rollup merge of #88789 - the8472:rm-zip-bound, r=JohnTitor
[rust.git] / src / test / ui / unique / unique-send.rs
1 // run-pass
2
3 use std::sync::mpsc::channel;
4
5 pub fn main() {
6     let (tx, rx) = channel::<Box<_>>();
7     tx.send(Box::new(100)).unwrap();
8     let v = rx.recv().unwrap();
9     assert_eq!(v, Box::new(100));
10 }