$ cargo build
   Compiling e0277_counter v0.1.0 (~/rust-book-examples/errors/e0277_counter)
error[E0277]: `Cell<u64>` cannot be shared between threads safely
  --> src/main.rs:17:36
   |
17 |           handles.push(thread::spawn(move || {
   |  ______________________-------------_^
   | |                      |
   | |                      required by a bound introduced by this call
18 | |             for _ in 0..1_000_000 {
19 | |                 c.set(c.get() + 1);
20 | |             }
21 | |         }));
   | |_________^ `Cell<u64>` cannot be shared between threads safely
   |
   = help: the trait `Sync` is not implemented for `Cell<u64>`
   = note: if you want to do aliasing and mutation between multiple threads, use `std::sync::RwLock` or `std::sync::atomic::AtomicU64` instead
   = note: required for `Arc<Cell<u64>>` to implement `Send`
note: required because it's used within this closure
  --> src/main.rs:17:36
   |
17 |         handles.push(thread::spawn(move || {
   |                                    ^^^^^^^
note: required by a bound in `spawn`
  --> /rustc/2d8144b7880597b6e6d3dfd63a9a9efae3f533d3/library/std/src/thread/functions.rs:125:0

For more information about this error, try `rustc --explain E0277`.
error: could not compile `e0277_counter` (bin "e0277_counter") due to 1 previous error
