Skip to content

Commit

Permalink
Change generated compiler error for register attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Indra-db committed Apr 5, 2024
1 parent 88e7019 commit 5977c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flecs_ecs_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub fn component_derive(input: ProcMacroTokenStream) -> ProcMacroTokenStream {

let is_attribute_supported = if has_attributes && is_not_generic || has_more_than_one_generic {
quote! { compile_error!("the register attribute can only be used when the type is generic over a single T.
For more complex cases please register the type manually over generic T"); }
For more complex cases please implement `ComponentId` trait manually over the specialized T"); }
} else {
quote! {}
};
Expand Down

0 comments on commit 5977c1d

Please sign in to comment.