2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-10-02 14:52:06 -05:00
|
|
|
struct Foo<'a> {
|
|
|
|
i: &'a bool,
|
2015-03-25 19:06:52 -05:00
|
|
|
j: Option<&'a isize>,
|
2014-10-02 14:52:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> Foo<'a> {
|
2015-03-25 19:06:52 -05:00
|
|
|
fn bar(&mut self, j: &isize) {
|
2014-10-02 14:52:06 -05:00
|
|
|
let child = Foo {
|
|
|
|
i: self.i,
|
|
|
|
j: Some(j)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|