| error[E0277]: the trait bound `NotCopy: std::marker::Copy` is not satisfied |
| --> $DIR/wf-static-type.rs:10:13 |
| | |
| LL | struct IsCopy<T:Copy> { t: T } |
| | --------------------- required by `IsCopy` |
| ... |
| LL | static FOO: IsCopy<Option<NotCopy>> = IsCopy { t: None }; |
| | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `NotCopy` |
| | |
| = note: required because of the requirements on the impl of `std::marker::Copy` for `std::option::Option<NotCopy>` |
| |
| error: aborting due to previous error |
| |
| For more information about this error, try `rustc --explain E0277`. |