Skip to content

Commit 78ed126

Browse files
committed
even --bless causes bug
1 parent ed75851 commit 78ed126

34 files changed

+56
-56
lines changed

tests/ui/array-slice-vec/slice-mut-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/slice-mut-2.rs:7:18
33
|
44
LL | let _ = &mut x[2..4];

tests/ui/borrowck/borrow-immutable-upvar-mutation.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | let _f = to_fn(|| x = 42);
1010
| | in this closure
1111
| expects `Fn` instead of `FnMut`
1212

13-
error[E0596]: cannot borrow `y` as mutable, as it is a captured variable in a `Fn` closure
13+
error[E0596]: cannot borrow y as mutable, as it is a captured variable in a `Fn` closure
1414
--> $DIR/borrow-immutable-upvar-mutation.rs:24:31
1515
|
1616
LL | fn to_fn<A: std::marker::Tuple, F: Fn<A>>(f: F) -> F {
@@ -46,7 +46,7 @@ LL | let _f = to_fn(move || x = 42);
4646
| | in this closure
4747
| expects `Fn` instead of `FnMut`
4848

49-
error[E0596]: cannot borrow `y` as mutable, as it is a captured variable in a `Fn` closure
49+
error[E0596]: cannot borrow y as mutable, as it is a captured variable in a `Fn` closure
5050
--> $DIR/borrow-immutable-upvar-mutation.rs:39:36
5151
|
5252
LL | fn to_fn<A: std::marker::Tuple, F: Fn<A>>(f: F) -> F {

tests/ui/borrowck/borrow-raw-address-of-deref-mutability.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrow-raw-address-of-deref-mutability.rs:8:13
33
|
44
LL | let q = &raw mut *x;

tests/ui/borrowck/borrow-raw-address-of-mutability.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ help: consider changing this to be mutable
3232
LL | let mut f = || {
3333
| +++
3434

35-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
35+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
3636
--> $DIR/borrow-raw-address-of-mutability.rs:29:17
3737
|
3838
LL | fn make_fn<F: Fn()>(f: F) -> F { f }
@@ -45,7 +45,7 @@ LL | let f = make_fn(|| {
4545
LL | let y = &raw mut x;
4646
| ^^^^^^^^^^ cannot borrow as mutable
4747

48-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
48+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
4949
--> $DIR/borrow-raw-address-of-mutability.rs:37:17
5050
|
5151
LL | fn make_fn<F: Fn()>(f: F) -> F { f }

tests/ui/borrowck/borrowck-access-permissions.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ help: consider changing this to be mutable
2626
LL | let mut box_x = Box::new(1);
2727
| +++
2828

29-
error[E0596]: cannot borrow `*ref_x` as mutable, as it is behind a `&` reference
29+
error[E0596]: cannot borrow *ref_x as mutable, as it is behind a `&` reference
3030
--> $DIR/borrowck-access-permissions.rs:30:19
3131
|
3232
LL | let _y1 = &mut *ref_x;
@@ -48,7 +48,7 @@ help: consider changing this to be a mutable pointer
4848
LL | let ptr_x : *const _ = &mut x;
4949
| +++
5050

51-
error[E0596]: cannot borrow `*foo_ref.f` as mutable, as it is behind a `&` reference
51+
error[E0596]: cannot borrow *foo_ref.f as mutable, as it is behind a `&` reference
5252
--> $DIR/borrowck-access-permissions.rs:48:18
5353
|
5454
LL | let _y = &mut *foo_ref.f;

tests/ui/borrowck/borrowck-borrow-mut-base-ptr-in-aliasable-loc.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LL | let p: &isize = &**t0;
1919
LL | **t1 = 22;
2020
| --------- mutable borrow later used here
2121

22-
error[E0596]: cannot borrow `**t0` as mutable, as it is behind a `&` reference
22+
error[E0596]: cannot borrow **t0 as mutable, as it is behind a `&` reference
2323
--> $DIR/borrowck-borrow-mut-base-ptr-in-aliasable-loc.rs:19:26
2424
|
2525
LL | let x: &mut isize = &mut **t0;

tests/ui/borrowck/borrowck-closures-mut-of-imm.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrowck-closures-mut-of-imm.rs:9:25
33
|
44
LL | let mut c1 = || set(&mut *x);
55
| ^^^^^^^ cannot borrow as mutable
66

7-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
7+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
88
--> $DIR/borrowck-closures-mut-of-imm.rs:11:25
99
|
1010
LL | let mut c2 = || set(&mut *x);

tests/ui/borrowck/borrowck-reborrow-from-mut.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ LL | let _foo2 = &mut *foo;
102102
LL | use_imm(_bar1);
103103
| ----- immutable borrow later used here
104104

105-
error[E0596]: cannot borrow `foo.bar1` as mutable, as it is behind a `&` reference
105+
error[E0596]: cannot borrow foo.bar1 as mutable, as it is behind a `&` reference
106106
--> $DIR/borrowck-reborrow-from-mut.rs:88:17
107107
|
108108
LL | let _bar1 = &mut foo.bar1;

tests/ui/borrowck/issue-115259-suggest-iter-mut.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `**layer` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow **layer as mutable, as it is behind a `&` reference
22
--> $DIR/issue-115259-suggest-iter-mut.rs:15:65
33
|
44
LL | self.layers.iter().fold(0, |result, mut layer| result + layer.process())

tests/ui/borrowck/issue-62387-suggest-iter-mut-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*container` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *container as mutable, as it is behind a `&` reference
22
--> $DIR/issue-62387-suggest-iter-mut-2.rs:30:45
33
|
44
LL | vec.iter().flat_map(|container| container.things()).cloned().collect::<Vec<PathBuf>>();

tests/ui/borrowck/issue-62387-suggest-iter-mut.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*a` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *a as mutable, as it is behind a `&` reference
22
--> $DIR/issue-62387-suggest-iter-mut.rs:18:27
33
|
44
LL | v.iter().for_each(|a| a.double());
@@ -11,7 +11,7 @@ help: you may want to use `iter_mut` here
1111
LL | v.iter_mut().for_each(|a| a.double());
1212
| ~~~~~~~~
1313

14-
error[E0596]: cannot borrow `*a` as mutable, as it is behind a `&` reference
14+
error[E0596]: cannot borrow *a as mutable, as it is behind a `&` reference
1515
--> $DIR/issue-62387-suggest-iter-mut.rs:25:39
1616
|
1717
LL | v.iter().rev().rev().for_each(|a| a.double());

tests/ui/borrowck/issue-82032.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*v` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *v as mutable, as it is behind a `&` reference
22
--> $DIR/issue-82032.rs:10:13
33
|
44
LL | for v in self.0.values() {

tests/ui/borrowck/issue-85765-closure.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*rofl` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *rofl as mutable, as it is behind a `&` reference
22
--> $DIR/issue-85765-closure.rs:6:9
33
|
44
LL | rofl.push(Vec::new());

tests/ui/borrowck/issue-85765.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*rofl` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *rofl as mutable, as it is behind a `&` reference
22
--> $DIR/issue-85765.rs:5:5
33
|
44
LL | rofl.push(Vec::new());

tests/ui/borrowck/issue-91206.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*inner` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *inner as mutable, as it is behind a `&` reference
22
--> $DIR/issue-91206.rs:13:5
33
|
44
LL | inner.clear();

tests/ui/borrowck/mutability-errors.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ help: consider changing this to be a mutable reference
2020
LL | fn named_ref(x: &mut (i32,)) {
2121
| +++
2222

23-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
23+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
2424
--> $DIR/mutability-errors.rs:11:5
2525
|
2626
LL | &mut *x;
@@ -31,7 +31,7 @@ help: consider changing this to be a mutable reference
3131
LL | fn named_ref(x: &mut (i32,)) {
3232
| +++
3333

34-
error[E0596]: cannot borrow `x.0` as mutable, as it is behind a `&` reference
34+
error[E0596]: cannot borrow x.0 as mutable, as it is behind a `&` reference
3535
--> $DIR/mutability-errors.rs:12:5
3636
|
3737
LL | &mut x.0;
@@ -161,7 +161,7 @@ LL | x = (1,);
161161
LL | x.0 = 1;
162162
| ^^^^^^^ cannot assign
163163

164-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
164+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
165165
--> $DIR/mutability-errors.rs:42:9
166166
|
167167
LL | fn fn_ref<F: Fn()>(f: F) -> F { f }
@@ -216,7 +216,7 @@ LL | x = (1,);
216216
LL | x.0 = 1;
217217
| ^^^^^^^ cannot assign
218218

219-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
219+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
220220
--> $DIR/mutability-errors.rs:48:9
221221
|
222222
LL | fn fn_ref<F: Fn()>(f: F) -> F { f }

tests/ui/borrowck/suggest-as-ref-on-mut-closure.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL | cb.map(|cb| cb());
1010
note: `Option::<T>::map` takes ownership of the receiver `self`, which moves `*cb`
1111
--> $SRC_DIR/core/src/option.rs:LL:COL
1212

13-
error[E0596]: cannot borrow `*cb` as mutable, as it is behind a `&` reference
13+
error[E0596]: cannot borrow *cb as mutable, as it is behind a `&` reference
1414
--> $DIR/suggest-as-ref-on-mut-closure.rs:12:26
1515
|
1616
LL | cb.as_ref().map(|cb| cb());

tests/ui/borrowck/suggest-mut-iterator.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*test` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *test as mutable, as it is behind a `&` reference
22
--> $DIR/suggest-mut-iterator.rs:22:9
33
|
44
LL | for test in &tests {

tests/ui/const-generics/generic_const_exprs/issue-109141.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: you might be missing a const parameter
99
LL | struct EntriesBuffer<const HashesEntryLEN: /* Type */>(Box<[[u8; HashesEntryLEN]; 5]>);
1010
| ++++++++++++++++++++++++++++++++++
1111

12-
error[E0596]: cannot borrow `*self.0` as mutable, as it is behind a `&` reference
12+
error[E0596]: cannot borrow *self.0 as mutable, as it is behind a `&` reference
1313
--> $DIR/issue-109141.rs:6:9
1414
|
1515
LL | self.0.iter_mut()

tests/ui/did_you_mean/issue-38147-1.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *self.s as mutable, as it is behind a `&` reference
22
--> $DIR/issue-38147-1.rs:17:9
33
|
44
LL | self.s.push('x');

tests/ui/did_you_mean/issue-38147-2.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *self.s as mutable, as it is behind a `&` reference
22
--> $DIR/issue-38147-2.rs:9:9
33
|
44
LL | self.s.push('x');
@@ -9,7 +9,7 @@ help: consider changing this to be mutable
99
LL | s: &'a mut String,
1010
| +++
1111

12-
error[E0596]: cannot borrow `*self.longer_name` as mutable, as it is behind a `&` reference
12+
error[E0596]: cannot borrow *self.longer_name as mutable, as it is behind a `&` reference
1313
--> $DIR/issue-38147-2.rs:12:9
1414
|
1515
LL | self.longer_name.push(13);

tests/ui/did_you_mean/issue-38147-3.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*self.s` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *self.s as mutable, as it is behind a `&` reference
22
--> $DIR/issue-38147-3.rs:7:9
33
|
44
LL | self.s.push('x');

tests/ui/did_you_mean/issue-38147-4.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*f.s` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *f.s as mutable, as it is behind a `&` reference
22
--> $DIR/issue-38147-4.rs:6:5
33
|
44
LL | f.s.push('x');

tests/ui/did_you_mean/issue-39544.stderr

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: consider changing this to be mutable
99
LL | let mut z = Z { x: X::Y };
1010
| +++
1111

12-
error[E0596]: cannot borrow `self.x` as mutable, as it is behind a `&` reference
12+
error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
1313
--> $DIR/issue-39544.rs:16:17
1414
|
1515
LL | let _ = &mut self.x;
@@ -20,7 +20,7 @@ help: consider changing this to be a mutable reference
2020
LL | fn foo<'z>(&'z mut self) {
2121
| ~~~~~~~~~~~~
2222

23-
error[E0596]: cannot borrow `self.x` as mutable, as it is behind a `&` reference
23+
error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
2424
--> $DIR/issue-39544.rs:20:17
2525
|
2626
LL | let _ = &mut self.x;
@@ -31,7 +31,7 @@ help: consider changing this to be a mutable reference
3131
LL | fn foo1(&mut self, other: &Z) {
3232
| ~~~~~~~~~
3333

34-
error[E0596]: cannot borrow `other.x` as mutable, as it is behind a `&` reference
34+
error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
3535
--> $DIR/issue-39544.rs:21:17
3636
|
3737
LL | let _ = &mut other.x;
@@ -42,7 +42,7 @@ help: consider changing this to be a mutable reference
4242
LL | fn foo1(&self, other: &mut Z) {
4343
| +++
4444

45-
error[E0596]: cannot borrow `self.x` as mutable, as it is behind a `&` reference
45+
error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
4646
--> $DIR/issue-39544.rs:25:17
4747
|
4848
LL | let _ = &mut self.x;
@@ -53,7 +53,7 @@ help: consider changing this to be a mutable reference
5353
LL | fn foo2<'a>(&'a mut self, other: &Z) {
5454
| ~~~~~~~~~~~~
5555

56-
error[E0596]: cannot borrow `other.x` as mutable, as it is behind a `&` reference
56+
error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
5757
--> $DIR/issue-39544.rs:26:17
5858
|
5959
LL | let _ = &mut other.x;
@@ -64,7 +64,7 @@ help: consider changing this to be a mutable reference
6464
LL | fn foo2<'a>(&'a self, other: &mut Z) {
6565
| +++
6666

67-
error[E0596]: cannot borrow `self.x` as mutable, as it is behind a `&` reference
67+
error[E0596]: cannot borrow self.x as mutable, as it is behind a `&` reference
6868
--> $DIR/issue-39544.rs:30:17
6969
|
7070
LL | let _ = &mut self.x;
@@ -75,7 +75,7 @@ help: consider changing this to be a mutable reference
7575
LL | fn foo3<'a>(self: &'a mut Self, other: &Z) {
7676
| +++
7777

78-
error[E0596]: cannot borrow `other.x` as mutable, as it is behind a `&` reference
78+
error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
7979
--> $DIR/issue-39544.rs:31:17
8080
|
8181
LL | let _ = &mut other.x;
@@ -86,7 +86,7 @@ help: consider changing this to be a mutable reference
8686
LL | fn foo3<'a>(self: &'a Self, other: &mut Z) {
8787
| +++
8888

89-
error[E0596]: cannot borrow `other.x` as mutable, as it is behind a `&` reference
89+
error[E0596]: cannot borrow other.x as mutable, as it is behind a `&` reference
9090
--> $DIR/issue-39544.rs:35:17
9191
|
9292
LL | let _ = &mut other.x;
@@ -108,7 +108,7 @@ help: consider changing this to be mutable
108108
LL | pub fn with_arg(mut z: Z, w: &Z) {
109109
| +++
110110

111-
error[E0596]: cannot borrow `w.x` as mutable, as it is behind a `&` reference
111+
error[E0596]: cannot borrow w.x as mutable, as it is behind a `&` reference
112112
--> $DIR/issue-39544.rs:42:13
113113
|
114114
LL | let _ = &mut w.x;

tests/ui/did_you_mean/issue-40823.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*buf` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *buf as mutable, as it is behind a `&` reference
22
--> $DIR/issue-40823.rs:3:5
33
|
44
LL | buf.iter_mut();

tests/ui/issues/issue-21600.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `x` as mutable, as it is a captured variable in a `Fn` closure
1+
error[E0596]: cannot borrow x as mutable, as it is a captured variable in a `Fn` closure
22
--> $DIR/issue-21600.rs:14:20
33
|
44
LL | fn call_it<F>(f: F) where F: Fn() { f(); }

tests/ui/issues/issue-61623.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x.1` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x.1 as mutable, as it is behind a `&` reference
22
--> $DIR/issue-61623.rs:6:19
33
|
44
LL | f2(|| x.0, f1(x.1))

tests/ui/span/borrowck-borrow-overloaded-deref-mut.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ help: consider changing this to be mutable
99
LL | fn deref_mut1(mut x: Own<isize>) {
1010
| +++
1111

12-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
12+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
1313
--> $DIR/borrowck-borrow-overloaded-deref-mut.rs:41:11
1414
|
1515
LL | &mut **x
@@ -31,7 +31,7 @@ help: consider changing this to be mutable
3131
LL | fn assign1<'a>(mut x: Own<isize>) {
3232
| +++
3333

34-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
34+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
3535
--> $DIR/borrowck-borrow-overloaded-deref-mut.rs:53:6
3636
|
3737
LL | **x = 3;

tests/ui/span/borrowck-call-is-borrow-issue-12224.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LL |
1010
LL | f((Box::new(|| {})))
1111
| - second borrow occurs due to use of `f` in closure
1212

13-
error[E0596]: cannot borrow `*f` as mutable, as it is behind a `&` reference
13+
error[E0596]: cannot borrow *f as mutable, as it is behind a `&` reference
1414
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:25:5
1515
|
1616
LL | (*f)();
@@ -21,7 +21,7 @@ help: consider changing this to be a mutable reference
2121
LL | fn test2<F>(f: &mut F) where F: FnMut() {
2222
| +++
2323

24-
error[E0596]: cannot borrow `f.f` as mutable, as it is behind a `&` reference
24+
error[E0596]: cannot borrow f.f as mutable, as it is behind a `&` reference
2525
--> $DIR/borrowck-call-is-borrow-issue-12224.rs:34:5
2626
|
2727
LL | f.f.call_mut(())

tests/ui/span/borrowck-call-method-from-mut-aliasable.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrowck-call-method-from-mut-aliasable.rs:17:5
33
|
44
LL | x.h();

tests/ui/span/borrowck-fn-in-const-b.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrowck-fn-in-const-b.rs:7:9
33
|
44
LL | x.push(format!("this is broken"));

tests/ui/span/borrowck-object-mutability.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
1+
error[E0596]: cannot borrow *x as mutable, as it is behind a `&` reference
22
--> $DIR/borrowck-object-mutability.rs:8:5
33
|
44
LL | x.borrowed_mut();

0 commit comments

Comments
 (0)