Skip to content

trait core::marker::Copy is not implemented for Interrupt #12

@pdgilbert

Description

@pdgilbert

With recent changes in rtic examples using stm32lxx_hal are now giving

Compiling rust-integration-testing-of-examples v0.1.0 (/home/paul/githubClones/rust-integration-testing/dev-testing)
error[E0277]: the trait bound `Interrupt: core::marker::Copy` is not satisfied
  --> examples/driver-examples/iaq-core-c-gas-voc-usart-logger.rs:41:48
   |
41 | #[cfg_attr(feature = "stm32l1xx", app(device = stm32l1xx_hal::stm32, dispatchers = [TIM2, TIM3]))] 
   |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `core::marker::Copy` is not implemented for `Interrupt`
   | 
  ::: /home/paul/.cargo/git/checkouts/cortex-m-rtic-da08f71f062e5e7b/ca9088a/src/lib.rs:54:8
   |
54 |     I: InterruptNumber,
   |        --------------- required by this bound in `pend`
   |
   = note: required because of the requirements on the impl of `InterruptNumber` for `Interrupt`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions