2019-10-29 00:00:00 +00:00
|
|
|
//@ build-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 20:13:15 +00:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2013-08-13 03:18:47 +00:00
|
|
|
pub struct Foo {
|
2015-03-26 00:06:52 +00:00
|
|
|
a: isize,
|
2013-08-13 03:18:47 +00:00
|
|
|
}
|
|
|
|
|
2013-12-10 07:16:18 +00:00
|
|
|
struct Bar<'a> {
|
2015-03-26 00:06:52 +00:00
|
|
|
a: Box<Option<isize>>,
|
2013-12-10 07:16:18 +00:00
|
|
|
b: &'a Foo,
|
2013-08-13 03:18:47 +00:00
|
|
|
}
|
|
|
|
|
2014-10-02 05:10:09 +00:00
|
|
|
fn check(a: Box<Foo>) {
|
2022-07-07 02:36:10 +00:00
|
|
|
let _ic = Bar{ b: &*a, a: Box::new(None) };
|
2013-08-13 03:18:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main(){}
|