mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
make resource proxies not Sync
This commit is contained in:
parent
40ebb93cc6
commit
62c5c1ae43
2 changed files with 2 additions and 3 deletions
|
|
@ -41,8 +41,9 @@ fn is_send<T>(_: &T) where T: Send {}
|
|||
fn is_sync<T>(_: &T) where T: Sync {}
|
||||
|
||||
fn exti0(_t: &mut Threshold, r: EXTI0::Resources) {
|
||||
// OK
|
||||
// ERROR resource proxies can't be shared between tasks
|
||||
is_sync(&r.SHARED);
|
||||
//~^ error the trait bound `*const (): core::marker::Sync` is not satisfied
|
||||
|
||||
// ERROR resource proxies are not `Send`able across tasks
|
||||
is_send(&r.SHARED);
|
||||
Loading…
Add table
Add a link
Reference in a new issue