DioxusLabs/dioxus · error · syn::Error
Illegal setting - field is already {}
Error message
Illegal setting - field is already {} What it means
Error "Illegal setting - field is already {}" thrown in DioxusLabs/dioxus.
Source
Thrown at packages/core-macro/src/props/mod.rs:431
.unwrap(),
);
self.strip_option = true;
Ok(())
}
"extend" => {
self.extends.push(path.path);
Ok(())
}
_ => {
macro_rules! handle_fields {
( $( $flag:expr, $field:ident, $already:expr; )* ) => {
match name.as_str() {
$(
$flag => {
if self.$field {
Err(Error::new(path.span(), concat!("Illegal setting - field is already ", $already)))
} else {
self.$field = true;
Ok(())
}
}
)*
_ => Err(Error::new_spanned(
&path,
format!("Unknown setter parameter {:?}", name),
))
}
}
}
handle_fields!(
"skip", skip, "skipped";
"into", auto_into, "calling into() on the argument";
"displayable", from_displayable, "calling to_string() on the argument";
"strip_option", strip_option, "putting the argument in Some(...)";View on GitHub (pinned to 393d190a80)
When it happens
Trigger: Thrown at packages/core-macro/src/props/mod.rs:431 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of DioxusLabs/dioxus@393d190a80 (2026-08-16).
Data as JSON: /api/errors/e7d790ffb7c75681.
Report an issue: GitHub.