about summary refs log tree commit diff
path: root/tests/ui/reborrow/pin_mut_coerce_shared.stderr
blob: 74ecf4de4c785d2d32bb6a85ba77f15d128b491a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: mismatched types
  --> $DIR/pin_mut_coerce_shared.rs:8:12
   |
LL |     method(a);
   |     ------ ^ types differ in mutability
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected struct `Pin<&()>`
              found struct `Pin<&mut ()>`
note: function defined here
  --> $DIR/pin_mut_coerce_shared.rs:3:4
   |
LL | fn method(a: Pin<&()>) {}
   |    ^^^^^^ -----------

error: aborting due to 1 previous error

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