]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/span-covering-argument-1.nll.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / macros / span-covering-argument-1.nll.stderr
1 error[E0596]: cannot borrow `foo` as mutable, as it is not declared as mutable
2   --> $DIR/span-covering-argument-1.rs:5:14
3    |
4 LL |             let $s = 0;
5    |                 -- help: consider changing this to be mutable: `mut foo`
6 LL |             *&mut $s = 0;
7    |              ^^^^^^^ cannot borrow as mutable
8 ...
9 LL |     bad!(foo whatever);
10    |     ------------------- in this macro invocation
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0596`.