rust/src/test/ui/issues/issue-5884.rs
2018-12-25 21:08:33 -07:00

21 lines
277 B
Rust

// compile-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
#![feature(box_syntax)]
pub struct Foo {
a: isize,
}
struct Bar<'a> {
a: Box<Option<isize>>,
b: &'a Foo,
}
fn check(a: Box<Foo>) {
let _ic = Bar{ b: &*a, a: box None };
}
pub fn main(){}