{"record":{"id":"86423ca0109d8806","repo":"bevyengine/bevy","slug":"no-overload-found-for-arguments-with-signature-r","errorCode":null,"errorMessage":"no overload found for arguments with signature `{received:?}`, expected one of `{expected:?}`","messagePattern":"no overload found for arguments with signature `(.+?)`, expected one of `(.+?)`","errorType":"exception","errorClass":"FunctionError","httpStatus":null,"severity":"error","filePath":"crates/bevy_reflect/src/func/error.rs","lineNumber":28,"sourceCode":"/// An error that occurs when calling a [`DynamicFunction`] or [`DynamicFunctionMut`].\n///\n/// [`DynamicFunction`]: crate::func::DynamicFunction\n/// [`DynamicFunctionMut`]: crate::func::DynamicFunctionMut\n#[derive(Debug, Error, PartialEq)]\npub enum FunctionError {\n    /// An error occurred while converting an argument.\n    #[error(transparent)]\n    ArgError(#[from] ArgError),\n    /// The number of arguments provided does not match the expected number.\n    #[error(\"received {received} arguments but expected one of {expected:?}\")]\n    ArgCountMismatch {\n        /// Expected argument count. [`ArgCount`] for overloaded functions will contain multiple possible counts.\n        expected: ArgCount,\n        /// Number of arguments received.\n        received: usize,\n    },\n    /// No overload was found for the given set of arguments.\n    #[error(\"no overload found for arguments with signature `{received:?}`, expected one of `{expected:?}`\")]\n    NoOverload {\n        /// The set of available argument signatures.\n        expected: HashSet<ArgumentSignature>,\n        /// The received argument signature.\n        received: ArgumentSignature,\n    },\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.","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_reflect/src/func/error.rs#L10-L46","documentation":"FunctionError::OverloadMismatch — the arguments' type signature matched none of the function's registered overloads. Payloads: the received argument signature and the list of expected signatures; adjust argument types or register a matching overload.","triggerScenarios":"Thrown at crates/bevy_reflect/src/func/error.rs:28 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass argument types matching one of the listed expected signatures","Register an overload accepting the given signature"],"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-14T00:17:10.932Z"}