rust/tests/ui/macros/issue-19163.stderr

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

12 lines
430 B
Plaintext
Raw Normal View History

error[E0596]: cannot borrow data in a `&` reference as mutable
2021-09-16 20:01:22 +00:00
--> $DIR/issue-19163.rs:9:5
2018-08-08 12:28:26 +00:00
|
LL | mywrite!(&v, "Hello world");
2021-10-14 18:28:28 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable
2021-09-16 20:01:22 +00:00
|
= note: this error originates in the macro `mywrite` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0596`.