Closed
Description
The following code leads to a Bus Error when executed. Function is Struct::new::h402a74079d4792bdD2aR::v0.0
rustc 0.10-pre (149fc76 2014-01-15 13:51:50 -0800)
host: x86_64-apple-darwin
Also repeatable on 0.9.
static NotPresent: Option<~int> = None;
pub struct Struct
{
option: Option<~int>
}
impl Struct
{
pub fn new() -> Struct { Struct {
option: NotPresent
} }
}
fn main()
{
let dc = Struct::new();
assert!(dc.option.is_none());
}
Metadata
Metadata
Assignees
Labels
No labels