{"record":{"id":"44b7c6efdca96b47","repo":"bevyengine/bevy","slug":"expected-at-least-one-signatureinfo-but-found-no","errorCode":null,"errorMessage":"expected at least one `SignatureInfo` but found none","messagePattern":"expected at least one `SignatureInfo` but found none","errorType":"exception","errorClass":"FunctionOverloadError","httpStatus":null,"severity":"error","filePath":"crates/bevy_reflect/src/func/error.rs","lineNumber":52,"sourceCode":"    },\n}\n\n/// The result of calling a [`DynamicFunction`] or [`DynamicFunctionMut`].\n///\n/// Returns `Ok(value)` if the function was called successfully,\n/// where `value` is the [`Return`] value of the function.\n///\n/// [`DynamicFunction`]: crate::func::DynamicFunction\n/// [`DynamicFunctionMut`]: crate::func::DynamicFunctionMut\npub type FunctionResult<'a> = Result<Return<'a>, FunctionError>;\n\n/// An error that occurs when attempting to add a function overload.\n#[derive(Debug, Error, PartialEq)]\npub enum FunctionOverloadError {\n    /// A [`SignatureInfo`] was expected, but none was found.\n    ///\n    /// [`SignatureInfo`]: crate::func::info::SignatureInfo\n    #[error(\"expected at least one `SignatureInfo` but found none\")]\n    MissingSignature,\n    /// An error that occurs when attempting to add a function overload with a duplicate signature.\n    #[error(\"could not add function overload: duplicate found for signature `{0:?}`\")]\n    DuplicateSignature(ArgumentSignature),\n    /// An attempt was made to add an overload with more than [`ArgCount::MAX_COUNT`] arguments.\n    ///\n    /// [`ArgCount::MAX_COUNT`]: crate::func::args::ArgCount\n    #[error(\n        \"argument signature `{:?}` has too many arguments (max {})\",\n        0,\n        ArgCount::MAX_COUNT\n    )]\n    TooManyArguments(ArgumentSignature),\n}\n\n/// An error that occurs when registering a function into a [`FunctionRegistry`].\n///\n/// [`FunctionRegistry`]: crate::func::FunctionRegistry","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_reflect/src/func/error.rs#L34-L70","documentation":"FunctionOverloadError::MissingSignature — attempting to register a function overload produced no SignatureInfo (e.g. the callable yielded no signature information), so nothing can be registered. Ensure the function has a valid, inferable signature.","triggerScenarios":"Thrown at crates/bevy_reflect/src/func/error.rs:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the function passed as an overload provides signature information","Build the overload from an IntoFunction closure so a signature is derived"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}