{"record":{"id":"35dd74b2022847cf","repo":"DioxusLabs/dioxus","slug":"receiver-parameters-are-not-supported","errorCode":null,"errorMessage":"Receiver parameters are not supported","messagePattern":"Receiver parameters are not supported","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"packages/core-macro/src/component.rs","lineNumber":498,"sourceCode":"        ));\n    }\n\n    // 4. we can't handle const components\n    if item_fn.sig.constness.is_some() {\n        return Err(Error::new(\n            item_fn.sig.constness.span(),\n            \"Const components are not supported\".to_string(),\n        ));\n    }\n\n    // 5. no receiver parameters\n    if item_fn\n        .sig\n        .inputs\n        .iter()\n        .any(|f| matches!(f, FnArg::Receiver(_)))\n    {\n        return Err(Error::new(\n            item_fn.sig.inputs.span(),\n            \"Receiver parameters are not supported\".to_string(),\n        ));\n    }\n\n    Ok(())\n}\n\n/// Convert a function arg with a given visibility (provided by the function) and then generate a field for the\n/// associated props struct.\nfn make_prop_struct_field(f: &FnArg, vis: &Visibility) -> TokenStream {\n    // There's no receivers (&self) allowed in the component body\n    let FnArg::Typed(pt) = f else { unreachable!() };\n\n    let arg_pat = match pt.pat.as_ref() {\n        // rip off mutability\n        // todo: we actually don't want any of the extra bits of the field pattern\n        Pat::Ident(f) => {","sourceCodeStart":480,"sourceCodeEnd":516,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/393d190a801ccb441d41923e232289b4f8a5c669/packages/core-macro/src/component.rs#L480-L516","documentation":"Error \"Receiver parameters are not supported\" thrown in DioxusLabs/dioxus.","triggerScenarios":"Thrown at packages/core-macro/src/component.rs:498 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"393d190a801ccb441d41923e232289b4f8a5c669","analyzedAt":"2026-08-16T11:27:45.815Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}