about summary refs log tree commit diff
path: root/tests/ui/delegation/method-call-choice.stderr
blob: 6757af20a6b3a3169b183d913d3f3ae0be49d8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0308]: mismatched types
  --> $DIR/method-call-choice.rs:21:27
   |
LL |     reuse to_reuse::foo { self.0 }
   |                     ---   ^^^^^^ expected `&F`, found `F`
   |                     |
   |                     arguments to this function are incorrect
   |
note: function defined here
  --> $DIR/method-call-choice.rs:15:12
   |
LL |     pub fn foo(_: &F) {}
   |            ^^^ -----
help: consider borrowing here
   |
LL |     reuse to_reuse::foo { &self.0 }
   |                           +

error: aborting due to 1 previous error

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