Files
rust/tests/ui/diagnostic-width/command-line-error-format-human.stderr

17 lines
455 B
Plaintext
Raw Normal View History

2017-11-20 13:13:27 +01:00
error[E0384]: cannot assign twice to immutable variable `x`
2025-06-03 23:35:08 +05:00
--> $DIR/command-line-error-format-human.rs:7:5
2017-11-20 13:13:27 +01:00
|
2018-02-25 02:59:34 +03:00
LL | let x = 42;
| - first assignment to `x`
2018-02-25 02:59:34 +03:00
LL | x = 43;
2017-11-20 13:13:27 +01:00
| ^^^^^^ cannot assign twice to immutable variable
|
help: consider making this binding mutable
|
LL | let mut x = 42;
| +++
2017-11-20 13:13:27 +01:00
error: aborting due to 1 previous error
2017-11-20 13:13:27 +01:00
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0384`.