]>
Commit | Line | Data |
---|---|---|
48663c56 XL |
1 | error[E0596]: cannot borrow `foo` as mutable, as it is not declared as mutable |
2 | --> $DIR/span-covering-argument-1.rs:5:14 | |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | let $s = 0; |
48663c56 | 5 | | -- help: consider changing this to be mutable: `mut foo` |
0531ce1d | 6 | LL | *&mut $s = 0; |
48663c56 | 7 | | ^^^^^^^ cannot borrow as mutable |
2c00a5a8 | 8 | ... |
0531ce1d | 9 | LL | bad!(foo whatever); |
c295e0f8 | 10 | | ------------------ in this macro invocation |
74b04a01 | 11 | | |
17df50a5 | 12 | = note: this error originates in the macro `bad` (in Nightly builds, run with -Z macro-backtrace for more info) |
2c00a5a8 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
0531ce1d | 16 | For more information about this error, try `rustc --explain E0596`. |