fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `demo` in this scope 2 --> $DIR/suggest-let-for-assignment.rs:4:5 3 | 4LL | demo = 1; 5 | ^^^^ 6 | 7help: you might have meant to introduce a new binding 8 | 9LL | let demo = 1; 10 | +++ 11 12error[E0425]: cannot find value `demo` in this scope 13 --> $DIR/suggest-let-for-assignment.rs:5:10 14 | 15LL | dbg!(demo); 16 | ^^^^ not found in this scope 17 18error[E0425]: cannot find value `x` in this scope 19 --> $DIR/suggest-let-for-assignment.rs:7:5 20 | 21LL | x = "x"; 22 | ^ 23 | 24help: you might have meant to introduce a new binding 25 | 26LL | let x = "x"; 27 | +++ 28 29error[E0425]: cannot find value `x` in this scope 30 --> $DIR/suggest-let-for-assignment.rs:8:23 31 | 32LL | println!("x: {}", x); 33 | ^ not found in this scope 34 35error[E0425]: cannot find value `x` in this scope 36 --> $DIR/suggest-let-for-assignment.rs:10:8 37 | 38LL | if x == "x" { 39 | ^ not found in this scope 40 41error[E0425]: cannot find value `y` in this scope 42 --> $DIR/suggest-let-for-assignment.rs:15:5 43 | 44LL | y = 1 + 2; 45 | ^ 46 | 47help: you might have meant to introduce a new binding 48 | 49LL | let y = 1 + 2; 50 | +++ 51 52error[E0425]: cannot find value `y` in this scope 53 --> $DIR/suggest-let-for-assignment.rs:16:23 54 | 55LL | println!("y: {}", y); 56 | ^ not found in this scope 57 58error: aborting due to 7 previous errors 59 60For more information about this error, try `rustc --explain E0425`.