summaryrefslogtreecommitdiffstats
path: root/tests/ui/span/borrowck-object-mutability.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/span/borrowck-object-mutability.stderr')
-rw-r--r--tests/ui/span/borrowck-object-mutability.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/span/borrowck-object-mutability.stderr b/tests/ui/span/borrowck-object-mutability.stderr
index b6517e0b3..805a8034c 100644
--- a/tests/ui/span/borrowck-object-mutability.stderr
+++ b/tests/ui/span/borrowck-object-mutability.stderr
@@ -7,7 +7,7 @@ LL | x.borrowed_mut();
help: consider changing this to be a mutable reference
|
LL | fn borrowed_receiver(x: &mut dyn Foo) {
- | ~~~~~~~~~~~~
+ | +++
error[E0596]: cannot borrow `*x` as mutable, as `x` is not declared as mutable
--> $DIR/borrowck-object-mutability.rs:18:5