rust/tests/ui/command-line-diagnostics.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
448 B
Plaintext
Raw Normal View History

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