rust/src/test/ui/macros/span-covering-argument-1.stderr

15 lines
488 B
Plaintext
Raw Normal View History

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-22 18:42:32 -06:00
LL | let $s = 0;
| -- help: make this binding mutable: `mut $s`
2018-02-22 18:42:32 -06:00
LL | *&mut $s = 0;
| ^^ cannot borrow mutably
...
2018-02-22 18:42:32 -06:00
LL | bad!(foo whatever);
| ------------------- 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`.