2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2014-12-23 19:53:35 +00:00
|
|
|
use std::sync::mpsc::channel;
|
2014-12-22 17:04:23 +00:00
|
|
|
|
2011-03-22 01:30:32 +00:00
|
|
|
// rustboot can't transmit nils across channels because they don't have
|
|
|
|
// any size, but rustc currently can because they do have size. Whether
|
|
|
|
// or not this is desirable I don't know, but here's a regression test.
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2014-03-09 21:58:32 +00:00
|
|
|
let (tx, rx) = channel();
|
2014-12-23 19:53:35 +00:00
|
|
|
tx.send(()).unwrap();
|
|
|
|
let n: () = rx.recv().unwrap();
|
2013-05-19 02:02:45 +00:00
|
|
|
assert_eq!(n, ());
|
2011-08-10 16:27:22 +00:00
|
|
|
}
|