mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-25 23:04:17 -05:00
5b1e673cec
This commit converts primitive_types4 to a test and asserts that the slice given is equal to the expected slice. The intent of the primitive_types4 exercise appears to be to ensure the user understands inclusive and exclusive bounds as well as slice syntax. `rustlings` commands using `compile` do not verify that a specific println is reached and, in the case of `watch` and `verify` (but not `run`), they do not output the `println`s at all. This fix is semantically similar to #198. It does not take a stance on the correct way to handle this for all exercises; see #127. There are likely other exercises whose intent are masked by this issue. |
||
---|---|---|
.. | ||
primitive_types1.rs | ||
primitive_types2.rs | ||
primitive_types3.rs | ||
primitive_types4.rs | ||
primitive_types5.rs | ||
primitive_types6.rs | ||
README.md |
Primitive Types
Rust has a couple of basic types that are directly implemented into the compiler. In this section, we'll go through the most important ones.