Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type parameter name conflicts of derive(Bundle) (#4636)
# Objective This code currently fails to compile with error ``the name `T` is already used for a generic parameter in this item's generic parameters``, because `T` is also used in code generated by `derive(Bundle)`. ```rust #[derive(Bundle)] struct MyBundle<T: Component> { component: T, } ``` ## Solution Add double underscores to type parameter names in `derive(Bundle)`.
- Loading branch information