]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/span-covering-argument-1.stderr
Move /src/test to /tests
[rust.git] / tests / ui / macros / span-covering-argument-1.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 |             *&mut $s = 0;
5    |              ^^^^^^^ cannot borrow as mutable
6 ...
7 LL |     bad!(foo whatever);
8    |     ------------------ in this macro invocation
9    |
10    = note: this error originates in the macro `bad` (in Nightly builds, run with -Z macro-backtrace for more info)
11 help: consider changing this to be mutable
12    |
13 LL |             let mut $s = 0;
14    |                 +++
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0596`.