We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following program causes a segmentation fault when dereferencing x.
x
fn main() { let mut x: ~int = ~1; x = x; println("-"); let y = *x; println("-"); }
My output:
jeremy@slupchik:~/tmp$ rustc -v rustc 0.9 host: x86_64-unknown-linux-gnu jeremy@slupchik:~/tmp$ rustc bug.rs bug.rs:5:9: 5:10 warning: unused variable: `y`, #[warn(unused_variable)] on by default bug.rs:5 let y = *x; ^ jeremy@slupchik:~/tmp$ ./bug - Segmentation fault
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'm pretty sure this is fixed on master (I don't have access to a compiler to verify right now, so I won't close).
Sorry, something went wrong.
Yep, I just verified that it runs correctly on 3eb3a02.
Closing as a dupe of #3290, which I believe has tests already checked in.
No branches or pull requests
The following program causes a segmentation fault when dereferencing
x
.My output:
The text was updated successfully, but these errors were encountered: