Skip to content
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

Fix run-pass/coerce-reborrow-imm-vec-arg.rs #7304

Closed
emberian opened this issue Jun 22, 2013 · 1 comment
Closed

Fix run-pass/coerce-reborrow-imm-vec-arg.rs #7304

emberian opened this issue Jun 22, 2013 · 1 comment

Comments

@emberian
Copy link
Member

I get

 rustc coerce-reborrow-imm-vec-arg.rs
coerce-reborrow-imm-vec-arg.rs:18:8: 18:9 error: cannot borrow const vec content as immutable
coerce-reborrow-imm-vec-arg.rs:18     sum(y)
                                          ^
coerce-reborrow-imm-vec-arg.rs:18:8: 18:9 error: unsafe borrow of aliasable, const value
coerce-reborrow-imm-vec-arg.rs:18     sum(y)
                                          ^
error: aborting due to 2 previous errors

Which I think is correct behavior. @nikomatsakis?

The test otherwise runs fine.

@nikomatsakis
Copy link
Contributor

that is the correct behavior. I think the commented out section can just be removed from the test. it used to pass because of the purity rules, but those are no longer.

@huonw huonw closed this as completed in e5fb4c4 Aug 7, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 17, 2021
Fix FP in `default_numeric_fallback` with external macro expansion

fixes rust-lang#7304

changelog: Fix `default_numeric_fallback` FP with external macro expansion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants