2024-02-17 04:02:50 +08:00
|
|
|
//@ check-pass
|
2018-09-26 05:51:35 +08:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2024-02-17 04:02:50 +08:00
|
|
|
//@ pretty-expanded FIXME #23616
|
2015-03-23 04:13:15 +08:00
|
|
|
|
2014-10-03 03:52:06 +08:00
|
|
|
struct Foo<'a> {
|
|
|
|
i: &'a bool,
|
2015-03-26 08:06:52 +08:00
|
|
|
j: Option<&'a isize>,
|
2014-10-03 03:52:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
impl<'a> Foo<'a> {
|
2015-03-26 08:06:52 +08:00
|
|
|
fn bar(&mut self, j: &isize) {
|
2014-10-03 03:52:06 +08:00
|
|
|
let child = Foo {
|
|
|
|
i: self.i,
|
|
|
|
j: Some(j)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|