2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-09-11 17:54:44 -05:00
|
|
|
pub mod two_tuple {
|
2015-02-12 09:29:52 -06:00
|
|
|
pub trait T { fn dummy(&self) { } }
|
2019-05-28 13:46:13 -05:00
|
|
|
pub struct P<'a>(&'a (dyn T + 'a), &'a (dyn T + 'a));
|
|
|
|
pub fn f<'a>(car: &'a dyn T, cdr: &'a dyn T) -> P<'a> {
|
2014-09-11 17:54:44 -05:00
|
|
|
P(car, cdr)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod two_fields {
|
2015-02-12 09:29:52 -06:00
|
|
|
pub trait T { fn dummy(&self) { } }
|
2019-05-28 13:46:13 -05:00
|
|
|
pub struct P<'a> { car: &'a (dyn T + 'a), cdr: &'a (dyn T + 'a) }
|
|
|
|
pub fn f<'a>(car: &'a dyn T, cdr: &'a dyn T) -> P<'a> {
|
2014-09-11 17:54:44 -05:00
|
|
|
P{ car: car, cdr: cdr }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|