# Advanced Hands-on Rust B2.0: P92 - Copy trait missing for GamePhase

**URL:** <https://forum.devtalk.com/t/advanced-hands-on-rust-b2-0-p92-copy-trait-missing-for-gamephase/165965>\
**Category:** PragProg Customers\
**Tags:** book-advanced-hands-on-rust, errata\
**Created:** [13 August 2024 11:23 UTC](https://forum.devtalk.com/t/advanced-hands-on-rust-b2-0-p92-copy-trait-missing-for-gamephase/165965 "2024-08-13T11:23:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul-jewell](https://forum.devtalk.com/user_avatar/forum.devtalk.com/paul-jewell/32/4530_2.png) [@paul-jewell](https://forum.devtalk.com/u/paul-jewell)\
**Post date:** [13 August 2024 11:23 UTC](https://forum.devtalk.com/t/advanced-hands-on-rust-b2-0-p92-copy-trait-missing-for-gamephase/165965/1 "2024-08-13T11:23:32Z")

</div>

@herbert

Good morning Herbert!

You already know this, as the downloadable code has corrected it already:

- On page 92, you define the enum GamePhase. This has a number of traits derived, but is missing the Copy trait. Without this, a rather cryptic error message results when running the code later in the chapter (specifically when modifying the build() function).
- The other change between the book code and the downloadable code: On p93, you add the gameStatePlugin:

```auto
.add_plugins(GameStatePlugin::<GamePhase>::new( 
    GamePhase::MainMenu,
    // ...
)

```

In the downloadable code, this call is just `.add_plugin(GameStatePlugin::new(`

I am not (yet) sure if this second change is an issue or not - I am going to go and play a bit to see what happens!
