2018-02-01 13:51:49 -06:00
|
|
|
error[E0596]: cannot borrow immutable local variable `foo` as mutable
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/span-covering-argument-1.rs:5:19
|
2018-02-01 13:51:49 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let $s = 0;
|
2018-09-12 13:13:40 -05:00
|
|
|
| -- help: make this binding mutable: `mut $s`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | *&mut $s = 0;
|
2018-02-01 13:51:49 -06:00
|
|
|
| ^^ cannot borrow mutably
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | bad!(foo whatever);
|
2018-02-01 13:51:49 -06:00
|
|
|
| ------------------- in this macro invocation
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0596`.
|