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

Problem with "primitives.md" #77

Open
raslanove opened this issue Nov 14, 2018 · 0 comments
Open

Problem with "primitives.md" #77

raslanove opened this issue Nov 14, 2018 · 0 comments

Comments

@raslanove
Copy link
Contributor

The document shows that if no type can be inferred, declarations default to isize and usize. According to this:
https://doc.rust-lang.org/book/first-edition/primitive-types.html#numeric-types
This is not the case. Actually doing this on a 64bit machine:
let _x = 30000000000;
gives "warning: literal out of range for i32" when compiled. However,
let _x: isize = 30000000000;
gives no issues whatsoever.

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

1 participant