aboutsummaryrefslogtreecommitdiff
path: root/examples/not-sync.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/not-sync.rs')
-rw-r--r--examples/not-sync.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/not-sync.rs b/examples/not-sync.rs
index aa79ad56..68af04a6 100644
--- a/examples/not-sync.rs
+++ b/examples/not-sync.rs
@@ -2,13 +2,16 @@
// #![deny(unsafe_code)]
#![deny(warnings)]
+#![deny(missing_docs)]
#![no_main]
#![no_std]
use core::marker::PhantomData;
use panic_semihosting as _;
+/// Not sync
pub struct NotSync {
+ /// Phantom action
_0: PhantomData<*const ()>,
}
@@ -22,6 +25,7 @@ mod app {
#[shared]
struct Shared {
+ /// This resource is not Sync
shared: NotSync,
}