-
Notifications
You must be signed in to change notification settings - Fork 58
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
int shouldn't be an executable type #1205
Comments
Oh, I didn't look at this closely enough when you sent it on Slack, sorry. This isn't technically unsound, as it's not possible for verified code to actually construct an fn main() {
exec_point(Point { x: 3 as int, y: 4 as int });
} results in:
|
This should help, once I get around to it: #323 |
I agree it's not unsound, but it leads to some really confusing and late diagnostics. Lint suggestions in #323 sound good. I'm also curious what |
Verus passes this test file (
verus /tmp/foo.rs --crate-type lib --compile
gives1 verified, 0 errors
), butint
shouldn't be accessible from executable code. I'm wondering what ended up in the compiled output!The text was updated successfully, but these errors were encountered: