summaryrefslogtreecommitdiffstats
path: root/vendor/darling-0.14.4/tests/compile-fail/default_expr_wrong_type.stderr
blob: a8b7c502bfcecef311b9a3cd3922efa373f938d9 (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
 --> tests/compile-fail/default_expr_wrong_type.rs:5:25
  |
5 |     #[darling(default = "usize::default")]
  |                         ^^^^^^^^^^^^^^^^ expected struct `String`, found `usize`
  |
help: try using a conversion method
  |
5 |     #[darling(default = "usize::default".to_string())]
  |                                         ++++++++++++
5 |     #[darling(default = "usize::default".to_string())]
  |                                         ++++++++++++

error[E0308]: mismatched types
 --> tests/compile-fail/default_expr_wrong_type.rs:8:35
  |
8 |     #[darling(multiple, default = "usize::default")]
  |                                   ^^^^^^^^^^^^^^^^ expected struct `Vec`, found `usize`
  |
  = note: expected struct `Vec<String>`
               found type `usize`