2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2015-10-20 09:23:31 -05:00
|
|
|
pub struct Chan;
|
|
|
|
pub struct ChanSelect<'c, T> {
|
|
|
|
chans: Vec<(&'c Chan, T)>,
|
|
|
|
}
|
|
|
|
impl<'c, T> ChanSelect<'c, T> {
|
|
|
|
pub fn add_recv_ret(&mut self, chan: &'c Chan, ret: T)
|
|
|
|
{
|
|
|
|
self.chans.push((chan, ret));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fn main() {}
|