about summary refs log tree commit diff
path: root/tests/ui/deref/pin-deref-const.stderr
blob: caa270e64ffeef2d159d51c33571bc7265b9f2ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
error[E0596]: cannot borrow data in dereference of `Pin<&MyUnpinType>` as mutable
  --> $DIR/pin-deref-const.rs:34:5
   |
LL |     r_unpin.at_mut_self();
   |     ^^^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Pin<&MyUnpinType>`

error[E0596]: cannot borrow data in dereference of `Pin<&mut MyPinType>` as mutable
  --> $DIR/pin-deref-const.rs:39:5
   |
LL |     r_pin.at_mut_self();
   |     ^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Pin<&mut MyPinType>`

error[E0596]: cannot borrow data in dereference of `Pin<&MyPinType>` as mutable
  --> $DIR/pin-deref-const.rs:44:5
   |
LL |     r_pin.at_mut_self();
   |     ^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Pin<&MyPinType>`

error[E0596]: cannot borrow data in dereference of `Pin<&MyUnpinType>` as mutable
  --> $DIR/pin-deref-const.rs:52:5
   |
LL |     r_unpin
   |     ^^^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Pin<&MyUnpinType>`

error[E0596]: cannot borrow data in dereference of `Pin<&MyPinType>` as mutable
  --> $DIR/pin-deref-const.rs:68:5
   |
LL |     r_pin
   |     ^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Pin<&MyPinType>`

error[E0596]: cannot borrow data in dereference of `Pin<&mut MyPinType>` as mutable
  --> $DIR/pin-deref-const.rs:76:5
   |
LL |     r_pin
   |     ^^^^^ cannot borrow as mutable
   |
   = help: trait `DerefMut` is required to modify through a dereference, but it is not implemented for `Pin<&mut MyPinType>`

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0596`.