-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
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
Returning a struct that holds an owned trait object results in a segfault #6717
Comments
Same with rustc from master branch (rev 2d28d64) |
Latest rustc from incoming branch (rev 9355330) fails to compile this example:
|
Fixed by #7214. |
flip1995
pushed a commit
to flip1995/rust
that referenced
this issue
Feb 25, 2021
Add the from_str_radix_10 lint changelog: added the new `from_str_radix_10` which sometimes replaces calls to `primitive::from_str_radix` to `str::parse` This is ready to be merged, although maybe the category should be `pedantic` instead of `style`? I'm not sure where it fits better. Closes rust-lang#6713.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using rustc 0.6, the compiled executable of the following code results in a segfault. I'm not exactly sure why, but I suppose this shouldn't happen ;).
Btw, using
@Animal
instead of~Animal
works fine. Using@Cage
or~Cage
doesn't matter (both crash). Building~Cage
directly inmain()
also works fine.The text was updated successfully, but these errors were encountered: