diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-36400.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-36400.stderr b/src/test/ui/issues/issue-36400.stderr new file mode 100644 index 000000000..3b37578f3 --- /dev/null +++ b/src/test/ui/issues/issue-36400.stderr @@ -0,0 +1,11 @@ +error[E0596]: cannot borrow `*x` as mutable, as `x` is not declared as mutable + --> $DIR/issue-36400.rs:5:7 + | +LL | let x = Box::new(3); + | - help: consider changing this to be mutable: `mut x` +LL | f(&mut *x); + | ^^^^^^^ cannot borrow as mutable + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0596`. |