File: derive-invalid-strategy.stderr

package info (click to toggle)
rust-merge 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 288 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0308]: mismatched types
  --> tests/compile/derive-invalid-strategy.rs:8:24
   |
8  |       #[merge(strategy = my_custom_merge_strategy)]
   |                          ^-----------------------
   |                          |
   |  ________________________arguments to this function are incorrect
   | |
9  | |     field1: u8,
   | |__________^ expected `u8`, found `&mut u8`
   |
note: function defined here
  --> tests/compile/derive-invalid-strategy.rs:12:4
   |
12 | fn my_custom_merge_strategy(left: u8, right: u8) -> u8 {
   |    ^^^^^^^^^^^^^^^^^^^^^^^^ --------