]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/span-covering-argument-1.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / macros / span-covering-argument-1.stderr
CommitLineData
48663c56
XL
1error[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 4LL | let $s = 0;
48663c56 5 | -- help: consider changing this to be mutable: `mut foo`
0531ce1d 6LL | *&mut $s = 0;
48663c56 7 | ^^^^^^^ cannot borrow as mutable
2c00a5a8 8...
0531ce1d 9LL | 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
14error: aborting due to previous error
15
0531ce1d 16For more information about this error, try `rustc --explain E0596`.