mirror of
https://github.com/bevyengine/bevy
synced 2024-11-14 00:47:32 +00:00
2c145826a3
# 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)`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |