We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a663846 commit d6d8769Copy full SHA for d6d8769
src/types/cast.md
@@ -22,6 +22,10 @@ fn main() {
22
let integer = decimal as u8;
23
let character = integer as char;
24
25
+ // Error! There are limitations in conversion rules. A float cannot be directly converted to a char.
26
+ let character = decimal as char;
27
+ // FIXME ^ Comment out this line
28
+
29
println!("Casting: {} -> {} -> {}", decimal, integer, character);
30
31
// when casting any value to an unsigned type, T,
0 commit comments