diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cfail/resource-not-send-sync.rs (renamed from tests/cfail/resource-not-send.rs) | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cfail/resource-not-send.rs b/tests/cfail/resource-not-send-sync.rs index c89c3d31..775c78ae 100644 --- a/tests/cfail/resource-not-send.rs +++ b/tests/cfail/resource-not-send-sync.rs @@ -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); |