warning: variable does not need to be mutable
--> tests/macro/fail/write_readonly_subset.rs:24:9
|
24 | let mut demo = m::Demo::new(1, 2);
| ----^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
error[E0594]: cannot assign to data in dereference of `Demo`
--> tests/macro/fail/write_readonly_subset.rs:25:5
|
25 | demo.visible += 1;
| ^^^^^^^^^^^^^^^^^ cannot assign
|
= help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Demo`