MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / usage_error

Function usage_error

aiscript-derived/src/lib.rs:24–26  ·  view source on GitHub ↗
(meta: &syn::meta::ParseNestedMeta, msg: &str)

Source from the content-addressed store, hash-verified

22}
23
24fn usage_error(meta: &syn::meta::ParseNestedMeta, msg: &str) -> syn::parse::Error {
25 meta.error(format_args!("{msg}. `#[collect(...)]` requires one mode (`require_static`, `no_drop`, or `unsafe_drop`) and optionally `bound = \"...\"`."))
26}
27
28// Deriving `Collect` must be done with care, because an implementation of `Drop` is not
29// necessarily safe for `Collect` types. This derive macro has three available modes to ensure

Callers 1

collect_deriveFunction · 0.85

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected