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

const fn calling non-const fn #399

Closed
llogiq opened this Issue Oct 19, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@llogiq
Copy link
Collaborator

llogiq commented Oct 19, 2015

This came up in a rust-users discussion.

Basically if we have a const function calling a non-const function, the const declaration is worthless.

@Manishearth

This comment has been minimized.

Copy link
Member

Manishearth commented Oct 19, 2015

The compiler catches you when a const function calls non const things. http://is.gd/aB9HjI

@llogiq llogiq closed this Oct 19, 2015

@llogiq

This comment has been minimized.

Copy link
Collaborator Author

llogiq commented Oct 19, 2015

Cool. I should have tested this before opening the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.