rust - Incorrect placement of let -
rust - Incorrect placement of let -
i'm making file hold bunch of thing larn rust it's having problem set allow statement on allow a = (1, "hello");
here's little code dump:
#[allow(dead_code)] fn main() { } //tuples// allow = (1, "hello"); allow b: (i32, &str) = (1, "hello"); //enums// enum character { digit(i32), other, } allow 10 = character::digit(10); allow 4 = character::digit(4);
you can utilize let
in functions. global variables can defined static
keyword, , have lot of limitations compared local variables.
please read the official book, covers questions this.
rust
Comments
Post a Comment