]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unique/unique-send.rs
Pin panic-in-drop=abort test to old pass manager
[rust.git] / src / test / ui / unique / unique-send.rs
1 // run-pass
2 #![feature(box_syntax)]
3
4 use std::sync::mpsc::channel;
5
6 pub fn main() {
7     let (tx, rx) = channel::<Box<_>>();
8     tx.send(box 100).unwrap();
9     let v = rx.recv().unwrap();
10     assert_eq!(v, box 100);
11 }