]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-29048.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-29048.rs
1 // compile-pass
2 pub struct Chan;
3 pub struct ChanSelect<'c, T> {
4     chans: Vec<(&'c Chan, T)>,
5 }
6 impl<'c, T> ChanSelect<'c, T> {
7     pub fn add_recv_ret(&mut self, chan: &'c Chan, ret: T)
8     {
9         self.chans.push((chan, ret));
10     }
11 }
12 fn main() {}