Debian Codegraph @

tests/ui/example_fn.stderr

raw
1 error: `example` value must be an expression, and string literals that may be interpreted as function paths are currently disallowed to avoid migration errors (this restriction may be relaxed in a future version of schemars).
2 If you want to use the result of a function, use `#[schemars(example = my_fn())]`.
3 Or to use the string literal value, use `#[schemars(example = &"my_fn")]`.
4 --> tests/ui/example_fn.rs:4:22
5 |
6 4 | #[schemars(example = "my_fn")]
7 | ^^^^^^^