DioxusLabs/dioxus · error · syn::Error
positional argument follows keyword argument
Error message
positional argument follows keyword argument
What it means
Error "positional argument follows keyword argument" thrown in DioxusLabs/dioxus.
Source
Thrown at packages/fullstack-macro/src/lib.rs:1678
"keyword argument repeated: `impl_deref`",
));
}
impl_deref = Some(stream.parse()?);
} else if key == "protocol" {
if protocol.is_some() {
return Err(syn::Error::new(
key.span(),
"keyword argument repeated: `protocol`",
));
}
protocol = Some(stream.parse()?);
} else {
return Err(lookahead.error());
}
} else {
let value = key_or_value;
if use_key_and_value {
return Err(syn::Error::new(
value.span(),
"positional argument follows keyword argument",
));
}
if arg_pos == 1 {
struct_name = Some(value)
} else {
return Err(syn::Error::new(value.span(), "expected string literal"));
}
}
} else if lookahead.peek(LitStr) {
if use_key_and_value {
return Err(syn::Error::new(
stream.span(),
"If you use keyword arguments (e.g., `name` = \
Something), then you can no longer use arguments \
without a keyword.",
));View on GitHub (pinned to 393d190a80)
When it happens
Trigger: Thrown at packages/fullstack-macro/src/lib.rs:1678 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/f56afc18ebc03289.
Report an issue: GitHub.