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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -