Closed

Description
struct U <T> {
wtf: Option<Box<U<T>>>
}
fn main() {
U{ wtf: Some(Box(U{ wtf: None })) };
}
<anon>:5:19: 5:33 error: mismatched types:
expected `core::ptr::Unique<_>`,
found `U<_>`
(expected struct `core::ptr::Unique`,
found struct `U`) [E0308]
<anon>:5 U{ wtf: Some(Box(U{ wtf: None })) };
^~~~~~~~~~~~~~
<anon>:5:15: 5:34 error: mismatched types:
expected `Box<U<_>>`,
found `alloc::boxed::Box<_>`
(expected box,
found struct `alloc::boxed::Box`) [E0308]
<anon>:5 U{ wtf: Some(Box(U{ wtf: None })) };
^~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
playpen: application terminated with error code 101
Could someone change the bad title? I am not good for english.